diff options
| author | Denis Kirjanov <[email protected]> | 2020-06-29 13:13:29 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-07-01 22:25:14 +0000 |
| commit | 1c9535c701fb287c2f292bc7fb39a07c5f8a25fd (patch) | |
| tree | 47073640bbb0b027c96b37c6d556e4d14741476b /drivers/net/xen-netback/interface.c | |
| parent | xen networking: add basic XDP support for xen-netfront (diff) | |
| download | kernel-1c9535c701fb287c2f292bc7fb39a07c5f8a25fd.tar.gz kernel-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 <[email protected]>
Signed-off-by: Denis Kirjanov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
| -rw-r--r-- | drivers/net/xen-netback/interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index 0c8a02a1ead7..8af497285691 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -483,6 +483,8 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, vif->queues = NULL; vif->num_queues = 0; + vif->xdp_headroom = 0; + spin_lock_init(&vif->lock); INIT_LIST_HEAD(&vif->fe_mcast_addr); |
