sfc: store PTP filters in a list
authorÍñigo Huguet <ihuguet@redhat.com>
Fri, 31 Mar 2023 11:14:01 +0000 (13:14 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Apr 2023 02:02:51 +0000 (19:02 -0700)
commite790fc15bfbf3d9e6edd4e42b6288a4dd678e2f4
tree0ca021d705390c9a208cd769eb5178bd8a5bb01b
parent7b600f8da8fe65183014c2b87e61da7c597476cf
sfc: store PTP filters in a list

Instead of using a fixed sized array for the PTP filters, use a list.

This is not actually necessary at this point because the filters for
multicast PTP are a fixed number, but this is a preparation for the
following patches adding support for unicast PTP.

To avoid confusion with the new struct type efx_ptp_rxfilter, change the
name of some local variables from rxfilter to spec, given they're of the
type efx_filter_spec.

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