linux/drivers/net/ethernet/oki-semi/pch_gbe
Daniel Borkmann 164d8c6665 net: ptp: do not reimplement PTP/BPF classifier
There are currently pch_gbe, cpts, and ixp4xx_eth drivers that open-code
and reimplement a BPF classifier for the PTP protocol. Since all of them
effectively do the very same thing and load the very same PTP/BPF filter,
we can just consolidate that code by introducing ptp_classify_raw() in
the time-stamping core framework which can be used in drivers.

As drivers get initialized after bootstrapping the core networking
subsystem, they can make use of ptp_insns wrapped through
ptp_classify_raw(), which allows to simplify and remove PTP classifier
setup code in drivers.

Joint work with Alexei Starovoitov.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Cc: Richard Cochran <richard.cochran@omicron.at>
Cc: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-03-31 00:45:09 -04:00
..
Kconfig net: pch_gbe depends on x86 2013-07-22 14:43:30 -07:00
Makefile
pch_gbe_api.c ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
pch_gbe_api.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
pch_gbe_ethtool.c ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
pch_gbe_main.c net: ptp: do not reimplement PTP/BPF classifier 2014-03-31 00:45:09 -04:00
pch_gbe_param.c ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
pch_gbe_phy.c ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
pch_gbe_phy.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
pch_gbe.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00