netdev-linux: Fix build with old kernel headers.
authorBen Pfaff <blp@nicira.com>
Tue, 24 Mar 2015 17:51:56 +0000 (10:51 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 24 Mar 2015 21:06:46 +0000 (14:06 -0700)
commit2f4298ce26b1130c63d2e8b21da13c22986bdeef
tree81132c95a2cf57b456761196296bf1c1889171eb
parent4752cc0c26cf6ddfded8f2675b58b6cd3529662a
netdev-linux: Fix build with old kernel headers.

Commit 677d9158fc0a (netdev-linux: Support for SFQ, FQ_CoDel and CoDel
qdiscs.) added support for new qdiscs.  The commit uses TCA_CODEL_* and
TCA_FQ_CODEL_* not in old kernel headers, causing a build failure against
such headers.  This commit should fix the problem by defining these values
ourselves.  (I haven't tested it against old headers, so I might have
missed something, but it's a straightforward change and at worst won't do
harm.)

It appears that sfq (also added by the same commit) was in Linux before
2.6.32, so it seems unlikely that we need any compatibility code there.

CC: Jonathan Vestin <jonavest@kau.se>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-linux.c