]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: complete the next packet when we receive a timestamp
authorTom Zhao <tzhao@solarflare.com>
Thu, 5 Mar 2020 11:38:45 +0000 (11:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2020 22:56:57 +0000 (14:56 -0800)
commitc202c873c867777386fb6083cc67bc9029b5b70d
treece62bc533650ccd16ca01c9dd325a96b62999c37
parentd8325b40cc1df03df753d93e8e4ef1cd6c8c7ff2
sfc: complete the next packet when we receive a timestamp

We now ignore the "completion" event when using tx queue timestamping,
and only pay attention to the two (high and low) timestamp events. The
NIC will send a pair of timestamp events for every packet transmitted.
The current firmware may merge the completion events, and it is possible
that future versions may reorder the completion and timestamp events.
As such the completion event is not useful.

Without this patch in place a merged completion event on a queue with
timestamping will cause a "spurious TX completion" error. This affects
SFN8000-series adapters.

Signed-off-by: Tom Zhao <tzhao@solarflare.com>
Acked-by: Martin Habets <mhabets@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/tx.c
drivers/net/ethernet/sfc/tx_common.c
drivers/net/ethernet/sfc/tx_common.h