net/ice: complete device configure in DCF
[dpdk.git] / drivers / net / qede / qede_if.h
index 02af2ee..858cd51 100644 (file)
@@ -1,9 +1,7 @@
-/*
- * Copyright (c) 2016 QLogic Corporation.
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2016 - 2018 Cavium Inc.
  * All rights reserved.
- * www.qlogic.com
- *
- * See LICENSE.qede_pmd for copyright and licensing details.
+ * www.cavium.com
  */
 
 #ifndef _QEDE_IF_H
@@ -19,7 +17,7 @@ enum ecore_int_mode;
 
 struct qed_dev_info {
        uint8_t num_hwfns;
-       uint8_t hw_mac[ETHER_ADDR_LEN];
+       uint8_t hw_mac[RTE_ETHER_ADDR_LEN];
        bool is_mf_default;
 
        /* FW version */
@@ -40,12 +38,22 @@ struct qed_dev_info {
 #define QED_MFW_VERSION_3_OFFSET       24
 
        uint32_t flash_size;
-       uint8_t mf_mode;
+       bool b_arfs_capable;
+       bool b_inter_pf_switch;
        bool tx_switching;
        u16 mtu;
 
        bool smart_an;
 
+       /* MBI version */
+       uint32_t mbi_version;
+#define QED_MBI_VERSION_0_MASK          0x000000FF
+#define QED_MBI_VERSION_0_OFFSET        0
+#define QED_MBI_VERSION_1_MASK          0x0000FF00
+#define QED_MBI_VERSION_1_OFFSET        8
+#define QED_MBI_VERSION_2_MASK          0x00FF0000
+#define QED_MBI_VERSION_2_OFFSET        16
+
        /* Out param for qede */
        bool vxlan_enable;
        bool gre_enable;
@@ -60,7 +68,7 @@ struct qed_dev_eth_info {
        uint8_t num_queues;
        uint8_t num_tc;
 
-       struct ether_addr port_mac;
+       struct rte_ether_addr port_mac;
        uint16_t num_vlan_filters;
        uint32_t num_mac_filters;
 
@@ -103,7 +111,7 @@ struct qed_link_output {
        uint32_t speed;         /* In Mb/s */
        uint32_t adv_speed;     /* Speed mask */
        uint8_t duplex;         /* In DUPLEX defs */
-       uint8_t port;           /* In PORT defs */
+       uint16_t port;          /* In PORT defs */
        bool autoneg;
        uint32_t pause_config;