projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eba61d
)
xen-netback: Unconditionally set NETIF_F_RXCSUM
author
Paul Durrant
<
[email protected]
>
Wed, 16 Oct 2013 16:50:30 +0000
(17:50 +0100)
committer
David S. Miller
<
[email protected]
>
Thu, 17 Oct 2013 19:35:16 +0000
(15:35 -0400)
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 <
[email protected]
>
Cc: Wei Liu <
[email protected]
>
Cc: David Vrabel <
[email protected]
>
Cc: Ian Campbell <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/xen-netback/interface.c
patch
|
blob
|
history
diff --git
a/drivers/net/xen-netback/interface.c
b/drivers/net/xen-netback/interface.c
index 8e927838652cc7550b2b4a4335e0df7e2d46dab6..cb0d8ea3d9f2d59095c9c013121df10af32cc115 100644
(file)
--- 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;