]> 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)
commit9749c7a67a2c5272604478fdc9c3f245c32a501e
treed1a3ce318ee81fec79aea757633e68612f04bbd9
parent7c7b2759e8f217eb60b6b0d6a1956ad7c91267e7
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]