summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2013-03-05 20:13:54 +0000
committerBen Hutchings <bhutchings@solarflare.com>2013-03-07 20:21:54 +0000
commit4a74dc65e3ad825a66dfbcb256f98c550f96445b (patch)
tree97f5e5ef4efaf339c59de29f1ac1475af398508b /drivers/net/ethernet/sfc/net_driver.h
parent86c2da58a70e02ece910a3bba3da86d61b6aeefd (diff)
downloadlinux-4a74dc65e3ad825a66dfbcb256f98c550f96445b.tar.gz
linux-4a74dc65e3ad825a66dfbcb256f98c550f96445b.tar.bz2
linux-4a74dc65e3ad825a66dfbcb256f98c550f96445b.zip
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r--drivers/net/ethernet/sfc/net_driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
index 0a90abd2421b..cdcf510311c3 100644
--- a/drivers/net/ethernet/sfc/net_driver.h
+++ b/drivers/net/ethernet/sfc/net_driver.h
@@ -410,7 +410,7 @@ struct efx_channel_type {
void (*post_remove)(struct efx_channel *);
void (*get_name)(struct efx_channel *, char *buf, size_t len);
struct efx_channel *(*copy)(const struct efx_channel *);
- void (*receive_skb)(struct efx_channel *, struct sk_buff *);
+ bool (*receive_skb)(struct efx_channel *, struct sk_buff *);
bool keep_eventq;
};