diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2013-05-09 09:25:16 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-11 23:01:15 (GMT) |
commit | cbccb18f4f937132af64a95ae04186a6c2c05236 (patch) | |
tree | 6316d0b9a2dc01e9587b06f415abe0bbd1a84fe9 | |
parent | 9106e5db8336d5048ac79f72056572c461a2566b (diff) | |
download | linux-fsl-qoriq-cbccb18f4f937132af64a95ae04186a6c2c05236.tar.xz |
qlcnic: Fix validation of link event command.
o VF driver that has enabled asynchronous link events
may not set BIT_8 in the request, if it does not require
link state in the response.
Signed-off-by: Pratik Pujar <pratik.pujar@qlogic.com>
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c index c81be2d..1a66ccd 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c @@ -1133,9 +1133,6 @@ static int qlcnic_sriov_validate_linkevent(struct qlcnic_vf_info *vf, if ((cmd->req.arg[1] >> 16) != vf->rx_ctx_id) return -EINVAL; - if (!(cmd->req.arg[1] & BIT_8)) - return -EINVAL; - return 0; } |