On Fri, 25 Oct 2019 17:54:08 +0000 Pavel Belous <[email protected]> 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.

