Skip to content

Commit

Permalink
hv_netvsc: pass struct net_device to rndis_filter_set_offload_params()
Browse files Browse the repository at this point in the history
The only caller rndis_filter_device_add() has 'struct net_device' pointer
already.

Signed-off-by: Vitaly Kuznetsov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
vittyvk authored and davem330 committed Jun 6, 2016
1 parent e834da9 commit 426d954
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/hyperv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,10 +620,9 @@ int rndis_filter_set_device_mac(struct net_device *ndev, char *mac)
}

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 net_device *ndev = hv_get_drvdata(hdev);
struct netvsc_device *nvdev = net_device_to_netvsc_device(ndev);
struct rndis_device *rdev = nvdev->extension;
struct rndis_request *request;
Expand Down Expand Up @@ -1083,7 +1082,7 @@ int rndis_filter_device_add(struct hv_device *dev,
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)
goto err_dev_remv;

Expand Down

0 comments on commit 426d954

Please sign in to comment.