Commit 93a3094
macsec: delete new rxsc when offload fails
Currently we get an inconsistent state:
- netlink returns the error to userspace
- the RXSC is installed but not offloaded
Then the device could get confused when we try to add an RXSA, because
the RXSC isn't supposed to exist.
Fixes: 3cf3227 ("net: macsec: hardware offloading infrastructure")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 8bcd560 commit 93a3094
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1876 | 1876 | | |
1877 | 1877 | | |
1878 | 1878 | | |
1879 | | - | |
1880 | 1879 | | |
1881 | 1880 | | |
1882 | 1881 | | |
| |||
1904 | 1903 | | |
1905 | 1904 | | |
1906 | 1905 | | |
1907 | | - | |
1908 | 1906 | | |
1909 | 1907 | | |
1910 | 1908 | | |
| |||
1931 | 1929 | | |
1932 | 1930 | | |
1933 | 1931 | | |
1934 | | - | |
| 1932 | + | |
| 1933 | + | |
1935 | 1934 | | |
1936 | 1935 | | |
1937 | 1936 | | |
| |||
0 commit comments