diff options
author | Denis Kirjanov <kda@linux-powerpc.org> | 2020-06-29 16:13:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-02 01:25:14 +0300 |
commit | 1c9535c701fb287c2f292bc7fb39a07c5f8a25fd (patch) | |
tree | 47073640bbb0b027c96b37c6d556e4d14741476b /drivers/net/xen-netback/common.h | |
parent | 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c (diff) | |
download | linux-1c9535c701fb287c2f292bc7fb39a07c5f8a25fd.tar.xz |
xen networking: add XDP offset adjustment to xen-netback
the patch basically adds the offset adjustment and netfront
state reading to make XDP work on netfront side.
Reviewed-by: Paul Durrant <paul@xen.org>
Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/common.h')
-rw-r--r-- | drivers/net/xen-netback/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h index 05847eb91a1b..ae477f7756af 100644 --- a/drivers/net/xen-netback/common.h +++ b/drivers/net/xen-netback/common.h @@ -281,6 +281,9 @@ struct xenvif { u8 ipv6_csum:1; u8 multicast_control:1; + /* headroom requested by xen-netfront */ + u16 xdp_headroom; + /* Is this interface disabled? True when backend discovers * frontend is rogue. */ @@ -395,6 +398,7 @@ static inline pending_ring_idx_t nr_pending_reqs(struct xenvif_queue *queue) irqreturn_t xenvif_interrupt(int irq, void *dev_id); extern bool separate_tx_rx_irq; +extern bool provides_xdp_headroom; extern unsigned int rx_drain_timeout_msecs; extern unsigned int rx_stall_timeout_msecs; |