1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (c) 2015 - 2024 Beijing WangXun Technology Co., Ltd. */ 3 4 #ifndef _TXGBE_FDIR_H_ 5 #define _TXGBE_FDIR_H_ 6 7 void txgbe_atr_compute_perfect_hash(union txgbe_atr_input *input, 8 union txgbe_atr_input *input_mask); 9 void txgbe_atr(struct wx_ring *ring, struct wx_tx_buffer *first, u8 ptype); 10 int txgbe_fdir_set_input_mask(struct wx *wx, union txgbe_atr_input *input_mask); 11 int txgbe_fdir_write_perfect_filter(struct wx *wx, 12 union txgbe_atr_input *input, 13 u16 soft_id, u8 queue); 14 int txgbe_fdir_erase_perfect_filter(struct wx *wx, 15 union txgbe_atr_input *input, 16 u16 soft_id); 17 void txgbe_configure_fdir(struct wx *wx); 18 void txgbe_fdir_filter_exit(struct wx *wx); 19 20 #endif /* _TXGBE_FDIR_H_ */ 21