net/ice/base: reduce calls to get profile associations
[dpdk.git] / drivers / net / ipn3ke / ipn3ke_ethdev.h
index 09d085c..af2da05 100644 (file)
@@ -245,7 +245,7 @@ struct ipn3ke_rpst {
        struct rte_eth_link ori_linfo;
        struct ipn3ke_tm_internals tm;
        /**< Private data store of assocaiated physical function */
-       struct ether_addr mac_addr;
+       struct rte_ether_addr mac_addr;
 };
 
 /* UUID IDs */
@@ -291,6 +291,7 @@ struct ipn3ke_hw {
        uint32_t acc_tm;
        uint32_t acc_flow;
 
+       struct ipn3ke_flow_list flow_list;
        uint32_t flow_max_entries;
        uint32_t flow_num_entries;
 
@@ -527,6 +528,38 @@ static inline void _ipn3ke_indrct_write(struct ipn3ke_hw *hw,
 #define IPN3KE_CLF_MHL_RES_MASK    0xFFFFFFFF
 #define IPN3KE_CLF_MHL_RES         (IPN3KE_CLASSIFY_OFFSET + 0x50000 + 0x2000)
 
+int
+ipn3ke_rpst_dev_set_link_up(struct rte_eth_dev *dev);
+int
+ipn3ke_rpst_dev_set_link_down(struct rte_eth_dev *dev);
+int
+ipn3ke_rpst_link_update(struct rte_eth_dev *ethdev,
+       __rte_unused int wait_to_complete);
+void
+ipn3ke_rpst_promiscuous_enable(struct rte_eth_dev *ethdev);
+void
+ipn3ke_rpst_promiscuous_disable(struct rte_eth_dev *ethdev);
+void
+ipn3ke_rpst_allmulticast_enable(struct rte_eth_dev *ethdev);
+void
+ipn3ke_rpst_allmulticast_disable(struct rte_eth_dev *ethdev);
+int
+ipn3ke_rpst_mac_addr_set(struct rte_eth_dev *ethdev,
+               struct rte_ether_addr *mac_addr);
+int
+ipn3ke_rpst_mtu_set(struct rte_eth_dev *ethdev, uint16_t mtu);
+
+int
+ipn3ke_rpst_init(struct rte_eth_dev *ethdev, void *init_params);
+int
+ipn3ke_rpst_uninit(struct rte_eth_dev *ethdev);
+int
+ipn3ke_hw_tm_init(struct ipn3ke_hw *hw);
+void
+ipn3ke_tm_init(struct ipn3ke_rpst *rpst);
+int
+ipn3ke_tm_ops_get(struct rte_eth_dev *ethdev,
+               void *arg);
 
 
 /* IPN3KE_MASK is a macro used on 32 bit registers */
@@ -609,7 +642,7 @@ static inline void _ipn3ke_indrct_write(struct ipn3ke_hw *hw,
  * Considering QinQ packet, the VLAN tag needs to be counted twice.
  */
 #define IPN3KE_ETH_OVERHEAD \
-               (ETHER_HDR_LEN + ETHER_CRC_LEN + IPN3KE_VLAN_TAG_SIZE * 2)
+       (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + IPN3KE_VLAN_TAG_SIZE * 2)
 
 #define IPN3KE_MAC_FRAME_SIZE_MAX    9728
 #define IPN3KE_MAC_RX_FRAME_MAXLENGTH    0x00AE