]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: set_one_mac_e1x uses raw's state as input
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 12 Mar 2012 08:53:09 +0000 (08:53 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:20 +0000 (15:23 +0800)
Previously, we used a hard-coded value as paramater, instead of using the
input's value. This is now remedied, as in other flows.

(cherry picked from commit 33ac338cf97f5e225c62ebcb3ff1a40bf32c88ad)
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_sp.c

index 487a2b7652d4278987841cfbdc1f242bfce34b01..4b4f3526fd54f2a8072d2b61c61d86bb9d7dc998 100644 (file)
@@ -865,7 +865,7 @@ static void bnx2x_set_one_mac_e1x(struct bnx2x *bp,
        /* Reset the ramrod data buffer */
        memset(config, 0, sizeof(*config));
 
-       bnx2x_vlan_mac_set_rdata_e1x(bp, o, BNX2X_FILTER_MAC_PENDING,
+       bnx2x_vlan_mac_set_rdata_e1x(bp, o, raw->state,
                                     cam_offset, add,
                                     elem->cmd_data.vlan_mac.u.mac.mac, 0,
                                     ETH_VLAN_FILTER_ANY_VLAN, config);