[dpdk-dev] [RFC v2 6/7] app/testpmd: macsec on/off commands using rte_security interface
Stephen Hemminger
stephen at networkplumber.org
Fri Oct 25 21:02:05 CEST 2019
On Fri, 25 Oct 2019 17:54:08 +0000
Pavel Belous <Pavel.Belous at aquantia.com> wrote:
> +int set_macsec_on_off(portid_t port_id, int on, int en, int rp)
> +{
> + struct rte_security_session_conf macsec_conf;
> + struct rte_security_ctx *ctx;
> + struct rte_mempool *mp;
> + int err = 0;
> +
> + ctx = rte_eth_dev_get_sec_ctx(port_id);
> +
> + if (!ctx) {
blank line between assignment and the if() statement is not necessary.
More information about the dev
mailing list