提交 426d9541 编写于 作者: V Vitaly Kuznetsov 提交者: David S. Miller

hv_netvsc: pass struct net_device to rndis_filter_set_offload_params()

The only caller rndis_filter_device_add() has 'struct net_device' pointer
already.
Signed-off-by: NVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e834da9a
...@@ -620,10 +620,9 @@ int rndis_filter_set_device_mac(struct net_device *ndev, char *mac) ...@@ -620,10 +620,9 @@ int rndis_filter_set_device_mac(struct net_device *ndev, char *mac)
} }
static int static int
rndis_filter_set_offload_params(struct hv_device *hdev, rndis_filter_set_offload_params(struct net_device *ndev,
struct ndis_offload_params *req_offloads) struct ndis_offload_params *req_offloads)
{ {
struct net_device *ndev = hv_get_drvdata(hdev);
struct netvsc_device *nvdev = net_device_to_netvsc_device(ndev); struct netvsc_device *nvdev = net_device_to_netvsc_device(ndev);
struct rndis_device *rdev = nvdev->extension; struct rndis_device *rdev = nvdev->extension;
struct rndis_request *request; struct rndis_request *request;
...@@ -1083,7 +1082,7 @@ int rndis_filter_device_add(struct hv_device *dev, ...@@ -1083,7 +1082,7 @@ int rndis_filter_device_add(struct hv_device *dev,
offloads.lso_v2_ipv4 = NDIS_OFFLOAD_PARAMETERS_LSOV2_ENABLED; offloads.lso_v2_ipv4 = NDIS_OFFLOAD_PARAMETERS_LSOV2_ENABLED;
ret = rndis_filter_set_offload_params(dev, &offloads); ret = rndis_filter_set_offload_params(net, &offloads);
if (ret) if (ret)
goto err_dev_remv; goto err_dev_remv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册