This patch introduces the macsec_context structure. It will be used in the kernel to exchange information between the common MACsec implementation (macsec.c) and the MACsec hardware offloading implementations. This structure contains pointers to MACsec specific structures which contain the actual MACsec configuration, and to the underlying device (phydev for now).
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -486,6 +486,13 @@ enum macsec_validation_type { · 485 unmodified lines | ||
| 486 | 486 | MACSEC_VALIDATE_MAX = __MACSEC_VALIDATE_END - 1, |
| 487 | 487 | }; |
| 488 | 488 | |
| 489 | +enum macsec_offload { | |
| 490 | + MACSEC_OFFLOAD_OFF = 0, | |
| 491 | + MACSEC_OFFLOAD_PHY = 1, | |
| 492 | + __MACSEC_OFFLOAD_END, | |
| 493 | + MACSEC_OFFLOAD_MAX = __MACSEC_OFFLOAD_END - 1, | |
| 494 | +}; | |
| 495 | + | |
| 489 | 496 | /* IPVLAN section */ |
| 490 | 497 | enum { |
| 491 | 498 | IFLA_IPVLAN_UNSPEC, |