summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>2016-08-09 03:57:42 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-09 07:22:20 +0200
commit59bcb7972fc5d53a621ee6b2c3cf1654cebb3dc5 (patch)
tree4130cbdcb7ceedd6ebcdd9f171af051190229b51 /include
parentqed: Use ieee mfw-mask to get ethtype in ieee-dcbx mode. (diff)
downloadlinux-59bcb7972fc5d53a621ee6b2c3cf1654cebb3dc5.tar.xz
linux-59bcb7972fc5d53a621ee6b2c3cf1654cebb3dc5.zip
qed: Add dcbx app support for IEEE Selection Field.
MFW now supports the Selection field for IEEE mode. Add driver changes to use the newer MFW masks to read/write the port-id value. Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/qed/qed_if.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/qed/qed_if.h b/include/linux/qed/qed_if.h
index b1e3c57c7117..d6c4177df7cb 100644
--- a/include/linux/qed/qed_if.h
+++ b/include/linux/qed/qed_if.h
@@ -70,8 +70,16 @@ struct qed_dbcx_pfc_params {
u8 max_tc;
};
+enum qed_dcbx_sf_ieee_type {
+ QED_DCBX_SF_IEEE_ETHTYPE,
+ QED_DCBX_SF_IEEE_TCP_PORT,
+ QED_DCBX_SF_IEEE_UDP_PORT,
+ QED_DCBX_SF_IEEE_TCP_UDP_PORT
+};
+
struct qed_app_entry {
bool ethtype;
+ enum qed_dcbx_sf_ieee_type sf_ieee;
bool enabled;
u8 prio;
u16 proto_id;