net: em_canid: Ematch rule to match CAN frames according to their identifiers
authorRostislav Lisovy <lisovy@gmail.com>
Wed, 4 Jul 2012 03:32:03 +0000 (05:32 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 4 Jul 2012 11:07:05 +0000 (13:07 +0200)
commitf057bbb6f9ed0fb61ea11105c9ef0ed5ac1a354d
treed1a3ce318ee81fec79aea757633e68612f04bbd9
parent30c1e672044d98e5c4cff5fcbdb34b55a2df0c0f
net: em_canid: Ematch rule to match CAN frames according to their identifiers

This ematch makes it possible to classify CAN frames (AF_CAN) according
to their identifiers. This functionality can not be easily achieved with
existing classifiers, such as u32, because CAN identifier is always stored
in native endianness, whereas u32 expects Network byte order.

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/linux/can.h
include/linux/pkt_cls.h
net/sched/Kconfig
net/sched/Makefile
net/sched/em_canid.c [new file with mode: 0644]