]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit300001957b79f672eeb65d98ccb387e6d2fafb93
treed1a3ce318ee81fec79aea757633e68612f04bbd9
parent12ec17b544fe91e2681192cb5fd7e6229a719aba
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]