qed: Add support for Unified Fabric Port.
This patch adds driver changes for supporting the Unified Fabric Port (UFP). This is a new paritioning mode wherein MFW provides the set of parameters to be used by the device such as traffic class, outer-vlan tag value, priority type etc. Drivers receives this info via notifications from mfw and configures the hardware accordingly. Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: Ariel Elior <ariel.elior@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b51bdfb9cb
commit
cac6f69154
@@ -202,6 +202,7 @@ struct qed_ll2_tx_pkt_info {
|
||||
bool enable_ip_cksum;
|
||||
bool enable_l4_cksum;
|
||||
bool calc_ip_len;
|
||||
bool remove_stag;
|
||||
};
|
||||
|
||||
#define QED_LL2_UNUSED_HANDLE (0xff)
|
||||
@@ -220,6 +221,11 @@ struct qed_ll2_params {
|
||||
u8 ll2_mac_address[ETH_ALEN];
|
||||
};
|
||||
|
||||
enum qed_ll2_xmit_flags {
|
||||
/* FIP discovery packet */
|
||||
QED_LL2_XMIT_FLAGS_FIP_DISCOVERY
|
||||
};
|
||||
|
||||
struct qed_ll2_ops {
|
||||
/**
|
||||
* @brief start - initializes ll2
|
||||
@@ -245,10 +251,12 @@ struct qed_ll2_ops {
|
||||
*
|
||||
* @param cdev
|
||||
* @param skb
|
||||
* @param xmit_flags - Transmit options defined by the enum qed_ll2_xmit_flags.
|
||||
*
|
||||
* @return 0 on success, otherwise error value.
|
||||
*/
|
||||
int (*start_xmit)(struct qed_dev *cdev, struct sk_buff *skb);
|
||||
int (*start_xmit)(struct qed_dev *cdev, struct sk_buff *skb,
|
||||
unsigned long xmit_flags);
|
||||
|
||||
/**
|
||||
* @brief register_cb_ops - protocol driver register the callback for Rx/Tx
|
||||
|
Reference in New Issue
Block a user