diff options
author | Paul Durrant <Paul.Durrant@citrix.com> | 2013-10-16 18:50:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-17 21:35:16 +0200 |
commit | 7365bcfa32d2c9d212c41d52ff3509d70b6a3466 (patch) | |
tree | 3c7b3222e074f54c093ccf7a67e2e7de624bd9de /drivers/net/xen-netback | |
parent | xen-netback: add support for IPv6 checksum offload from guest (diff) | |
download | linux-7365bcfa32d2c9d212c41d52ff3509d70b6a3466.tar.xz linux-7365bcfa32d2c9d212c41d52ff3509d70b6a3466.zip |
xen-netback: Unconditionally set NETIF_F_RXCSUM
There is no mechanism to insist that a guest always generates a packet
with good checksum (at least for IPv4) so we must handle checksum
offloading from the guest and hence should set NETIF_F_RXCSUM.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback')
-rw-r--r-- | drivers/net/xen-netback/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index 8e927838652c..cb0d8ea3d9f2 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -321,7 +321,7 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_TSO; - dev->features = dev->hw_features; + dev->features = dev->hw_features | NETIF_F_RXCSUM; SET_ETHTOOL_OPS(dev, &xenvif_ethtool_ops); dev->tx_queue_len = XENVIF_QUEUE_LENGTH; |