]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hv_netvsc: Rename tx_send_table to tx_table
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 13 Oct 2017 19:28:04 +0000 (12:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2017 01:42:55 +0000 (18:42 -0700)
Simplify the variable name: tx_send_table

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c

index 65ceb3aec40ed11944f8a2ea914a44850f2c0a70..4958bb6b737672405f60abbfc830e202f63f1c42 100644 (file)
@@ -731,7 +731,7 @@ struct net_device_context {
 
        u32 tx_checksum_mask;
 
-       u32 tx_send_table[VRSS_SEND_TAB_SIZE];
+       u32 tx_table[VRSS_SEND_TAB_SIZE];
 
        /* Ethtool settings */
        u8 duplex;
index 6e5194916bbeed86dc3052f7ebd55f5b297a5cd3..d34cf37e949d20d36249ae0b3b01b8e0c329b4f0 100644 (file)
@@ -1110,7 +1110,7 @@ static void netvsc_send_table(struct hv_device *hdev,
                      nvmsg->msg.v5_msg.send_table.offset);
 
        for (i = 0; i < count; i++)
-               net_device_ctx->tx_send_table[i] = tab[i];
+               net_device_ctx->tx_table[i] = tab[i];
 }
 
 static void netvsc_send_vf(struct net_device_context *net_device_ctx,
index 8fa964e733ad50326e19bd45d8d2e9eb39e3e02a..da216ca4f2b231b2483a47c0fc249e4b0c529831 100644 (file)
@@ -252,8 +252,8 @@ static inline int netvsc_get_tx_queue(struct net_device *ndev,
        struct sock *sk = skb->sk;
        int q_idx;
 
-       q_idx = ndc->tx_send_table[netvsc_get_hash(skb, ndc) &
-                                  (VRSS_SEND_TAB_SIZE - 1)];
+       q_idx = ndc->tx_table[netvsc_get_hash(skb, ndc) &
+                             (VRSS_SEND_TAB_SIZE - 1)];
 
        /* If queue index changed record the new value */
        if (q_idx != old_idx &&