sfc: Allow efx_channel_type::receive_skb() to reject a packet
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 5 Mar 2013 20:13:54 +0000 (20:13 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 7 Mar 2013 20:21:54 +0000 (20:21 +0000)
commit4a74dc65e3ad825a66dfbcb256f98c550f96445b
tree97f5e5ef4efaf339c59de29f1ac1475af398508b
parent86c2da58a70e02ece910a3bba3da86d61b6aeefd
sfc: Allow efx_channel_type::receive_skb() to reject a packet

Instead of having efx_ptp_rx() call netif_receive_skb() for an invalid
PTP packet, make it return false for rejected packets and have
efx_rx_deliver() pass them up.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/ptp.c
drivers/net/ethernet/sfc/rx.c