macsec_linux: Fix receive-lowest-PN setting
Setting of the PN for the receive SA failed because the SCI wasn't provided. Fix this by adding the needed attribute to the command. Signed-off-by: Ze Gan <ganze718@gmail.com>
This commit is contained in:
parent
e3b47cdf86
commit
79db311e89
1 changed files with 3 additions and 0 deletions
|
@ -712,6 +712,9 @@ static int macsec_drv_set_receive_lowest_pn(void *priv, struct receive_sa *sa)
|
||||||
if (!msg)
|
if (!msg)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (nla_put_rxsc_config(msg, mka_sci_u64(&sa->sc->sci)))
|
||||||
|
goto nla_put_failure;
|
||||||
|
|
||||||
nest = nla_nest_start(msg, MACSEC_ATTR_SA_CONFIG);
|
nest = nla_nest_start(msg, MACSEC_ATTR_SA_CONFIG);
|
||||||
if (!nest)
|
if (!nest)
|
||||||
goto nla_put_failure;
|
goto nla_put_failure;
|
||||||
|
|
Loading…
Reference in a new issue