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)
commit5f94c943d5dd4b51f3248193e622dd5fcdbb8b11
treec773bfd331b79873c5f3ed9f1a44e00152ecb06f
parentccf6ee9a6980eff9ec0eeaa8f63c65bff34d9697
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