提交 fcba1569 编写于 作者: H Haiyang Zhang 提交者: David S. Miller

hv_netvsc: Clean up unused parameter from netvsc_get_hash()

The parameter "sk" is not in use.
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0580b53f
...@@ -193,7 +193,7 @@ static void *init_ppi_data(struct rndis_message *msg, u32 ppi_size, ...@@ -193,7 +193,7 @@ static void *init_ppi_data(struct rndis_message *msg, u32 ppi_size,
/* Azure hosts don't support non-TCP port numbers in hashing yet. We compute /* Azure hosts don't support non-TCP port numbers in hashing yet. We compute
* hash for non-TCP traffic with only IP numbers. * hash for non-TCP traffic with only IP numbers.
*/ */
static inline u32 netvsc_get_hash(struct sk_buff *skb, struct sock *sk) static inline u32 netvsc_get_hash(struct sk_buff *skb)
{ {
struct flow_keys flow; struct flow_keys flow;
u32 hash; u32 hash;
...@@ -227,7 +227,7 @@ static inline int netvsc_get_tx_queue(struct net_device *ndev, ...@@ -227,7 +227,7 @@ static inline int netvsc_get_tx_queue(struct net_device *ndev,
struct sock *sk = skb->sk; struct sock *sk = skb->sk;
int q_idx; int q_idx;
q_idx = ndc->tx_send_table[netvsc_get_hash(skb, sk) & q_idx = ndc->tx_send_table[netvsc_get_hash(skb) &
(VRSS_SEND_TAB_SIZE - 1)]; (VRSS_SEND_TAB_SIZE - 1)];
/* If queue index changed record the new value */ /* If queue index changed record the new value */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册