]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
pch_gbe: run the ptp bpf just once per packet
authorRichard Cochran <richardcochran@gmail.com>
Fri, 20 Apr 2012 18:50:35 +0000 (18:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 19:27:45 +0000 (15:27 -0400)
commit32127a0a0a35706c18df11cd7ad69e96214b3c68
tree78a10204d205c8b2a682d15764c3c7bcd40b30ba
parent358dfb6d77c016af764c0f7007697e5f5bc322c2
pch_gbe: run the ptp bpf just once per packet

This patch fixes code which needlessly ran the BPF twice per
packet. Instead, we just run the classifier once and test
whether the packet is any kind of PTP event message.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c