Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e091e7a authored by Yuval Mintz's avatar Yuval Mintz Committed by David S. Miller
Browse files

bnx2x: Utilize FW 7.13.1.0.



Commit 46e8a249423ff "bnx2x: Add FW 7.13.1.0" added said .bin FW to
linux-firmware; This patch incorporates the FW in the bnx2x driver.

This introduces 2 fixes/enhancements:
 - In some management protocols there are outer-vlan configurations
that can be dynamically changed while device is running. This fixes
some corner cases where such a change did not take effect.

 - Prevent VFs from sending MAC control frames; FW would treat a VF
sending such a packet as malicious and block any further communication
done by the VF.

Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: default avatarAriel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b811580d
Loading
Loading
Loading
Loading
+23 −20
Original line number Original line Diff line number Diff line
@@ -3013,8 +3013,8 @@ struct afex_stats {
};
};


#define BCM_5710_FW_MAJOR_VERSION			7
#define BCM_5710_FW_MAJOR_VERSION			7
#define BCM_5710_FW_MINOR_VERSION			12
#define BCM_5710_FW_MINOR_VERSION			13
#define BCM_5710_FW_REVISION_VERSION		30
#define BCM_5710_FW_REVISION_VERSION		1
#define BCM_5710_FW_ENGINEERING_VERSION		0
#define BCM_5710_FW_ENGINEERING_VERSION		0
#define BCM_5710_FW_COMPILE_FLAGS			1
#define BCM_5710_FW_COMPILE_FLAGS			1


@@ -3583,7 +3583,7 @@ enum classify_rule {
	CLASSIFY_RULE_OPCODE_MAC,
	CLASSIFY_RULE_OPCODE_MAC,
	CLASSIFY_RULE_OPCODE_VLAN,
	CLASSIFY_RULE_OPCODE_VLAN,
	CLASSIFY_RULE_OPCODE_PAIR,
	CLASSIFY_RULE_OPCODE_PAIR,
	CLASSIFY_RULE_OPCODE_VXLAN,
	CLASSIFY_RULE_OPCODE_IMAC_VNI,
	MAX_CLASSIFY_RULE
	MAX_CLASSIFY_RULE
};
};


@@ -3826,6 +3826,17 @@ struct eth_classify_header {
	__le32 echo;
	__le32 echo;
};
};


/*
 * Command for adding/removing a Inner-MAC/VNI classification rule
 */
struct eth_classify_imac_vni_cmd {
	struct eth_classify_cmd_header header;
	__le32 vni;
	__le16 imac_lsb;
	__le16 imac_mid;
	__le16 imac_msb;
	__le16 reserved1;
};


/*
/*
 * Command for adding/removing a MAC classification rule
 * Command for adding/removing a MAC classification rule
@@ -3869,14 +3880,6 @@ struct eth_classify_vlan_cmd {
/*
/*
 * Command for adding/removing a VXLAN classification rule
 * Command for adding/removing a VXLAN classification rule
 */
 */
struct eth_classify_vxlan_cmd {
	struct eth_classify_cmd_header header;
	__le32 vni;
	__le16 inner_mac_lsb;
	__le16 inner_mac_mid;
	__le16 inner_mac_msb;
	__le16 reserved1;
};


/*
/*
 * union for eth classification rule
 * union for eth classification rule
@@ -3885,7 +3888,7 @@ union eth_classify_rule_cmd {
	struct eth_classify_mac_cmd mac;
	struct eth_classify_mac_cmd mac;
	struct eth_classify_vlan_cmd vlan;
	struct eth_classify_vlan_cmd vlan;
	struct eth_classify_pair_cmd pair;
	struct eth_classify_pair_cmd pair;
	struct eth_classify_vxlan_cmd vxlan;
	struct eth_classify_imac_vni_cmd imac_vni;
};
};


/*
/*
@@ -5623,6 +5626,14 @@ enum igu_mode {
	MAX_IGU_MODE
	MAX_IGU_MODE
};
};


/*
 * Inner Headers Classification Type
 */
enum inner_clss_type {
	INNER_CLSS_DISABLED,
	INNER_CLSS_USE_VLAN,
	INNER_CLSS_USE_VNI,
	MAX_INNER_CLSS_TYPE};


/*
/*
 * IP versions
 * IP versions
@@ -5953,14 +5964,6 @@ enum ts_offset_cmd {
	MAX_TS_OFFSET_CMD
	MAX_TS_OFFSET_CMD
};
};


/* Tunnel Mode */
enum tunnel_mode {
	TUNN_MODE_NONE,
	TUNN_MODE_VXLAN,
	TUNN_MODE_GRE,
	MAX_TUNNEL_MODE
};

 /* zone A per-queue data */
 /* zone A per-queue data */
struct ustorm_queue_zone_data {
struct ustorm_queue_zone_data {
	struct ustorm_eth_rx_producers eth_rx_producers;
	struct ustorm_eth_rx_producers eth_rx_producers;