diff options
author | Vasundhara Volam <vasundhara.volam@emulex.com> | 2013-10-01 15:59:57 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-01 12:45:51 -0400 |
commit | 81b0265531b2ff091fb91c0af9bc9675f84e6f56 (patch) | |
tree | bf6020553b963b9945faf487e05ead21c729997b /drivers/net/ethernet/emulex/benet | |
parent | b905b5d4d93d0b88fcd1d3bcd76d238d9401bc31 (diff) | |
download | blackbird-op-linux-81b0265531b2ff091fb91c0af9bc9675f84e6f56.tar.gz blackbird-op-linux-81b0265531b2ff091fb91c0af9bc9675f84e6f56.zip |
be2net: pass if_id for v1 and V2 versions of TX_CREATE cmd
It is a required field for all TX_CREATE cmd versions > 0.
Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index 1ab5dab11eff..331dfdc7a4fb 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c @@ -1195,7 +1195,6 @@ int be_cmd_txq_create(struct be_adapter *adapter, struct be_tx_obj *txo) if (lancer_chip(adapter)) { req->hdr.version = 1; - req->if_id = cpu_to_le16(adapter->if_handle); } else if (BEx_chip(adapter)) { if (adapter->function_caps & BE_FUNCTION_CAPS_SUPER_NIC) req->hdr.version = 2; @@ -1203,6 +1202,8 @@ int be_cmd_txq_create(struct be_adapter *adapter, struct be_tx_obj *txo) req->hdr.version = 2; } + if (req->hdr.version > 0) + req->if_id = cpu_to_le16(adapter->if_handle); req->num_pages = PAGES_4K_SPANNED(q_mem->va, q_mem->size); req->ulp_num = BE_ULP1_NUM; req->type = BE_ETH_TX_RING_TYPE_STANDARD; |