net/mlx5: add glue for queue query via DevX
[dpdk.git] / drivers / net / cxgbe / cxgbe_filter.h
index 2d60777..0c67d2d 100644 (file)
@@ -102,7 +102,7 @@ struct ch_filter_specification {
        uint32_t eport:2;       /* egress port to switch packet out */
        uint32_t swapmac:1;     /* swap SMAC/DMAC for loopback packet */
        uint32_t newvlan:2;     /* rewrite VLAN Tag */
-       uint8_t dmac[ETHER_ADDR_LEN];   /* new destination MAC address */
+       uint8_t dmac[RTE_ETHER_ADDR_LEN];   /* new destination MAC address */
        uint16_t vlan;          /* VLAN Tag to insert */
 
        /*
@@ -267,4 +267,6 @@ void hash_del_filter_rpl(struct adapter *adap,
 int validate_filter(struct adapter *adap, struct ch_filter_specification *fs);
 int cxgbe_get_filter_count(struct adapter *adapter, unsigned int fidx,
                           u64 *c, int hash, bool get_byte);
+int cxgbe_clear_filter_count(struct adapter *adapter, unsigned int fidx,
+                            int hash, bool clear_byte);
 #endif /* _CXGBE_FILTER_H_ */