liquidio: Function call skb_iq for deriving queue from skb
authorIntiyaz Basha <intiyaz.basha@cavium.com>
Sat, 24 Mar 2018 00:37:36 +0000 (17:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Mar 2018 20:18:54 +0000 (16:18 -0400)
Using skb_iq function for deriving queue from skb

Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com>
Acked-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c

index 15129d0d45e9a9bdf1fc10c012cff93a94c85fd5..75131dcac221ed539612388c32f8491eea844f45 100644 (file)
@@ -2533,8 +2533,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev)
        lio = GET_LIO(netdev);
        oct = lio->oct_dev;
 
-       q_idx = skb->queue_mapping;
-       q_idx = (q_idx % (lio->linfo.num_txpciq));
+       q_idx = skb_iq(lio, skb);
        tag = q_idx;
        iq_no = lio->linfo.txpciq[q_idx].s.q_no;
 
index 5ab0831d6b53a3d03e63c23990c29e12925f3cd9..478c20a7e5cf5086409c7c575074b6fc52b30323 100644 (file)
@@ -1604,8 +1604,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev)
        lio = GET_LIO(netdev);
        oct = lio->oct_dev;
 
-       q_idx = skb->queue_mapping;
-       q_idx = (q_idx % (lio->linfo.num_txpciq));
+       q_idx = skb_iq(lio, skb);
        tag = q_idx;
        iq_no = lio->linfo.txpciq[q_idx].s.q_no;