net: macsec: support multicast/broadcast when offloading
authorMark Starovoytov <mstarovoitov@marvell.com>
Wed, 25 Mar 2020 12:52:36 +0000 (15:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 03:17:36 +0000 (20:17 -0700)
commitf428011b90ec0de7429886f753b7c3293392761c
treeb4f64d6ab12d03a3777cbda628e533c29cdd219f
parenta249f8050624f92f844605274de3367e2c8ac706
net: macsec: support multicast/broadcast when offloading

The idea is simple. If the frame is an exact match for the controlled port
(based on DA comparison), then we simply divert this skb to matching port.

Multicast/broadcast messages are delivered to all ports.

Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c