* [PATCH V2 net-next] hv_netvsc: cleanup netdev feature flags for netvsc
@ 2016-02-04 23:49 Simon Xiao
2016-02-11 12:18 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Simon Xiao @ 2016-02-04 23:49 UTC (permalink / raw)
To: kys, haiyangz, devel, netdev, linux-kernel; +Cc: Simon Xiao
1. Adding NETIF_F_TSO6 feature flag;
2. Adding NETIF_F_HW_CSUM. NETIF_F_IPV6_CSUM and NETIF_F_IP_CSUM are
being deprecated;
3. Cleanup the coding style of flag assignment by using macro.
Signed-off-by: Simon Xiao <sixiao@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
---
drivers/net/hyperv/netvsc_drv.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 1d3a665..c72e5b8 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -43,6 +43,11 @@
#define RING_SIZE_MIN 64
#define LINKCHANGE_INT (2 * HZ)
+#define NETVSC_HW_FEATURES (NETIF_F_RXCSUM | \
+ NETIF_F_SG | \
+ NETIF_F_TSO | \
+ NETIF_F_TSO6 | \
+ NETIF_F_HW_CSUM)
static int ring_size = 128;
module_param(ring_size, int, S_IRUGO);
MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)");
@@ -1081,10 +1086,8 @@ static int netvsc_probe(struct hv_device *dev,
net->netdev_ops = &device_ops;
- net->hw_features = NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_IP_CSUM |
- NETIF_F_TSO;
- net->features = NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_SG | NETIF_F_RXCSUM |
- NETIF_F_IP_CSUM | NETIF_F_TSO;
+ net->hw_features = NETVSC_HW_FEATURES;
+ net->features = NETVSC_HW_FEATURES | NETIF_F_HW_VLAN_CTAG_TX;
net->ethtool_ops = ðtool_ops;
SET_NETDEV_DEV(net, &dev->device);
--
2.5.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH V2 net-next] hv_netvsc: cleanup netdev feature flags for netvsc
2016-02-04 23:49 [PATCH V2 net-next] hv_netvsc: cleanup netdev feature flags for netvsc Simon Xiao
@ 2016-02-11 12:18 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-02-11 12:18 UTC (permalink / raw)
To: sixiao; +Cc: kys, haiyangz, devel, netdev, linux-kernel
From: Simon Xiao <sixiao@microsoft.com>
Date: Thu, 4 Feb 2016 15:49:34 -0800
> 1. Adding NETIF_F_TSO6 feature flag;
> 2. Adding NETIF_F_HW_CSUM. NETIF_F_IPV6_CSUM and NETIF_F_IP_CSUM are
> being deprecated;
> 3. Cleanup the coding style of flag assignment by using macro.
>
> Signed-off-by: Simon Xiao <sixiao@microsoft.com>
> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-11 12:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-04 23:49 [PATCH V2 net-next] hv_netvsc: cleanup netdev feature flags for netvsc Simon Xiao
2016-02-11 12:18 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®