cxgb4: fix setting of the function number in transmit descriptors
authorDimitris Michailidis <dm@chelsio.com>
Mon, 23 Aug 2010 17:21:00 +0000 (17:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2010 03:38:14 +0000 (20:38 -0700)
Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/sge.c

index 44c2e6c9f073d43ab2d04a34e2048c73f0d4f153..6ddb3bb0ce67665bb2cc7e6b1632cd2953a22598 100644 (file)
@@ -975,7 +975,7 @@ out_free:   dev_kfree_skb(skb);
        }
 
        cpl->ctrl0 = htonl(TXPKT_OPCODE(CPL_TX_PKT_XT) |
-                          TXPKT_INTF(pi->tx_chan) | TXPKT_PF(0));
+                          TXPKT_INTF(pi->tx_chan) | TXPKT_PF(adap->fn));
        cpl->pack = htons(0);
        cpl->len = htons(skb->len);
        cpl->ctrl1 = cpu_to_be64(cntrl);