]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: Change ptp_class to a proper bitmask
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Tue, 3 Nov 2015 08:34:07 +0000 (09:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 16:08:22 +0000 (11:08 -0500)
commitb5e792abc7c1454dede472fb0caa843934869aaf
treec773bfd331b79873c5f3ed9f1a44e00152ecb06f
parent4778bc0df3f9055529557bd2e34cc8f1be9542be
ptp: Change ptp_class to a proper bitmask

Change the definition of PTP_CLASS_L2 to not have any bits overlapping with
the other defined protocol values, allowing the PTP_CLASS_* definitions to
be for simple filtering on packet type.

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ptp_classify.h
net/core/ptp_classifier.c