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>
This commit is contained in:
parent
86c2da58a7
commit
4a74dc65e3
3 changed files with 14 additions and 14 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue