]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Configure ptp filters during bnxt open
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Fri, 13 May 2022 02:40:22 +0000 (22:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2022 11:47:40 +0000 (12:47 +0100)
commit9be5c0d98bae90ea2220cf945aa08b464ef9c0e9
treee0de0aaca49315afe910b54b5dcf65be597d9a52
parent82c1326d9452dda579d399ddf5b3145f5947f16f
bnxt_en: Configure ptp filters during bnxt open

For correctness, we need to configure the packet filters for timestamping
during bnxt_open.  This way they are always configured after firmware
reset or chip reset.  We should not assume that the filters will always
be retained across resets.

This patch modifies the ioctl handler and always configures the PTP
filters in the bnxt_open() path.

Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h