diff options
author | Vasundhara Volam <vasundhara.volam@emulex.com> | 2014-01-15 02:53:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-15 18:52:02 -0500 |
commit | 2c07c1d7dadcc0025c56351be8e81d74e4feb5af (patch) | |
tree | c06f7e5249a50e67955d9ab28c878a01d2035ffc /drivers/net/ethernet/emulex/benet/be_cmds.c | |
parent | 666d39c7482b370f60df4232038cac39c0e30c36 (diff) |
be2net: don't set "pport" field when querying "pvid"
In the GET_HSW_CONFIG cmd, the "pport" field must be set only while
querying the switch mode. When the "pport" field is set, the
"interface_id" field must be set to the port number, otherwise, it
must be set to adapter->if_handle.
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/be_cmds.c')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index 95eeb2423f39..d9bdeba79aa4 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c | |||
@@ -2996,7 +2996,7 @@ int be_cmd_get_hsw_config(struct be_adapter *adapter, u16 *pvid, | |||
2996 | ctxt, intf_id); | 2996 | ctxt, intf_id); |
2997 | AMAP_SET_BITS(struct amap_get_hsw_req_context, pvid_valid, ctxt, 1); | 2997 | AMAP_SET_BITS(struct amap_get_hsw_req_context, pvid_valid, ctxt, 1); |
2998 | 2998 | ||
2999 | if (!BEx_chip(adapter)) { | 2999 | if (!BEx_chip(adapter) && mode) { |
3000 | AMAP_SET_BITS(struct amap_get_hsw_req_context, interface_id, | 3000 | AMAP_SET_BITS(struct amap_get_hsw_req_context, interface_id, |
3001 | ctxt, adapter->hba_port_num); | 3001 | ctxt, adapter->hba_port_num); |
3002 | AMAP_SET_BITS(struct amap_get_hsw_req_context, pport, ctxt, 1); | 3002 | AMAP_SET_BITS(struct amap_get_hsw_req_context, pport, ctxt, 1); |