diff options
author | Denis Kirjanov <kda@linux-powerpc.org> | 2020-06-29 15:13:29 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-02 00:25:14 +0200 |
commit | 1c9535c701fb287c2f292bc7fb39a07c5f8a25fd (patch) | |
tree | 47073640bbb0b027c96b37c6d556e4d14741476b /drivers/net/xen-netback/netback.c | |
parent | xen networking: add basic XDP support for xen-netfront (diff) | |
download | linux-1c9535c701fb287c2f292bc7fb39a07c5f8a25fd.tar.xz linux-1c9535c701fb287c2f292bc7fb39a07c5f8a25fd.zip |
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/netback.c')
-rw-r--r-- | drivers/net/xen-netback/netback.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 315dfc6ea297..6dfca7265644 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -96,6 +96,13 @@ unsigned int xenvif_hash_cache_size = XENVIF_HASH_CACHE_SIZE_DEFAULT; module_param_named(hash_cache_size, xenvif_hash_cache_size, uint, 0644); MODULE_PARM_DESC(hash_cache_size, "Number of flows in the hash cache"); +/* The module parameter tells that we have to put data + * for xen-netfront with the XDP_PACKET_HEADROOM offset + * needed for XDP processing + */ +bool provides_xdp_headroom = true; +module_param(provides_xdp_headroom, bool, 0644); + static void xenvif_idx_release(struct xenvif_queue *queue, u16 pending_idx, u8 status); |