]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'macsec-offload-fixes'
authorDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2022 10:43:57 +0000 (10:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2022 10:43:57 +0000 (10:43 +0000)
commit38d29d95d19f3dfcd32640aecd3ace5014d53dc0
tree1056d292135103ec50d2fb60c614e4c4a2d450fa
parent4cac492420b4003ef5681ee3a222a4b6df1fb4f5
parenta87ec6f757f4d857ccdfabbdb2a8bdfad811ab6c
Merge branch 'macsec-offload-fixes'

Sabrina Dubroca says:

====================
macsec: offload-related fixes

I'm working on a dummy offload for macsec on netdevsim. It just has a
small SecY and RXSC table so I can trigger failures easily on the
ndo_* side. It has exposed a couple of issues.

The first patch is a revert of commit 63664d61b806 ("net: macsec:
report real_dev features when HW offloading is enabled"). That commit
tried to improve the performance of macsec offload by taking advantage
of some of the NIC's features, but in doing so, broke macsec offload
when the lower device supports both macsec and ipsec offload, as the
ipsec offload feature flags were copied from the real device. Since
the macsec device doesn't provide xdo_* ops, the XFRM core rejects the
registration of the new macsec device in xfrm_api_check.

I'm working on re-adding those feature flags when offload is
available, but I haven't fully solved that yet. I think it would be
safer to do that second part in net-next considering how complex
feature interactions tend to be.

v2:
 - better describe the issue introduced by commit 63664d61b806 (Leon
   Romanovsky)
 - patch #3: drop unnecessary !! (Leon Romanovsky)

v3:
 - patch #3: drop extra newline (Jakub Kicinski)
====================

Signed-off-by: David S. Miller <davem@davemloft.net>