1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2018 Oracle and/or its affiliates. All rights reserved. */
4 #ifndef _IXGBEVF_IPSEC_H_
5 #define _IXGBEVF_IPSEC_H_
7 #define IXGBE_IPSEC_MAX_SA_COUNT 1024
8 #define IXGBE_IPSEC_BASE_RX_INDEX 0
9 #define IXGBE_IPSEC_BASE_TX_INDEX IXGBE_IPSEC_MAX_SA_COUNT
10 #define IXGBE_IPSEC_AUTH_BITS 128
12 #define IXGBE_RXMOD_VALID 0x00000001
13 #define IXGBE_RXMOD_PROTO_ESP 0x00000004
14 #define IXGBE_RXMOD_DECRYPT 0x00000008
15 #define IXGBE_RXMOD_IPV6 0x00000010
18 struct hlist_node hlist
;
19 struct xfrm_state
*xs
;
36 struct xfrm_state
*xs
;
44 struct ixgbevf_ipsec_tx_data
{
50 struct ixgbevf_ipsec
{
55 DECLARE_HASHTABLE(rx_sa_list
, 10);
66 #endif /* _IXGBEVF_IPSEC_H_ */