DPDK
25.11.0
Toggle main menu visibility
Loading...
Searching...
No Matches
rte_macsec.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(C) 2022 Marvell.
3
*/
4
5
#ifndef RTE_MACSEC_H
6
#define RTE_MACSEC_H
7
13
14
#include <
rte_byteorder.h
>
15
16
#define RTE_MACSEC_TCI_VER_MASK 0x80
17
#define RTE_MACSEC_TCI_ES 0x40
18
#define RTE_MACSEC_TCI_SC 0x20
19
#define RTE_MACSEC_TCI_SCB 0x10
20
#define RTE_MACSEC_TCI_E 0x08
21
#define RTE_MACSEC_TCI_C 0x04
22
#define RTE_MACSEC_AN_MASK 0x03
23
27
__extension__
28
struct
__rte_packed_begin
rte_macsec_hdr
{
33
uint8_t
tci_an
;
34
#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
35
uint8_t
short_length
:6;
36
uint8_t unused:2;
37
#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
38
uint8_t unused:2;
39
uint8_t
short_length
:6;
40
#endif
41
rte_be32_t
packet_number
;
42
} __rte_packed_end;
43
45
#define RTE_MACSEC_SCI_LEN 8
46
51
struct
__rte_packed_begin
rte_macsec_sci_hdr
{
52
uint8_t
sci
[
RTE_MACSEC_SCI_LEN
];
53
} __rte_packed_end;
54
55
#endif
/* RTE_MACSEC_H */
rte_byteorder.h
rte_be32_t
uint32_t rte_be32_t
Definition
rte_byteorder.h:117
__rte_packed_begin
#define __rte_packed_begin
Definition
rte_common.h:158
RTE_MACSEC_SCI_LEN
#define RTE_MACSEC_SCI_LEN
Definition
rte_macsec.h:45
rte_macsec_hdr
Definition
rte_macsec.h:28
rte_macsec_hdr::short_length
uint8_t short_length
Definition
rte_macsec.h:35
rte_macsec_hdr::packet_number
rte_be32_t packet_number
Definition
rte_macsec.h:41
rte_macsec_hdr::tci_an
uint8_t tci_an
Definition
rte_macsec.h:33
rte_macsec_sci_hdr
Definition
rte_macsec.h:51
rte_macsec_sci_hdr::sci
uint8_t sci[RTE_MACSEC_SCI_LEN]
Definition
rte_macsec.h:52
lib
net
rte_macsec.h
Generated by
1.17.0