]> git.baikalelectronics.ru Git - kernel.git/commit
qede: Fix concurrency issue in PTP Tx path processing.
authorsudarsana.kalluru@cavium.com <sudarsana.kalluru@cavium.com>
Tue, 2 May 2017 08:11:02 +0000 (01:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:33:01 +0000 (15:33 -0400)
commit3b97910b2a57fbd7e369e9943402b11b2862dc5f
treecd756e3606697f1273655dd4593cab51df768458
parent56f6aa062cbfe80a0c421c09fb4462b502c845e4
qede: Fix concurrency issue in PTP Tx path processing.

PTP Tx timestamping data structures are not protected against the
concurrent access in the Tx paths. Protecting the same using atomic
bit locks.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede.h
drivers/net/ethernet/qlogic/qede/qede_ptp.c