OSDN Git Service

sfc: allow insertion of filters for unicast PTP
authorÍñigo Huguet <ihuguet@redhat.com>
Fri, 31 Mar 2023 11:14:02 +0000 (13:14 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Apr 2023 02:02:51 +0000 (19:02 -0700)
commit75687cd06620e5229a74c127e6a46048aa6307f3
tree83ecfbeb9d70f5369dbd70605be53abf42ff7284
parente790fc15bfbf3d9e6edd4e42b6288a4dd678e2f4
sfc: allow insertion of filters for unicast PTP

Add a second list for unicast filters and generalize the
efx_ptp_insert/remove_filters functions to allow acting in any of the 2
lists.

No filters for unicast are inserted yet. That will be done in the next
patch.

The reason to use 2 different lists instead of a single one is that, in
next patches, we will want to check if unicast filters are already added
and if they're expired. We don't need that for multicast filters.

Reported-by: Yalin Li <yalli@redhat.com>
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/ptp.c