OSDN Git Service

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)
commit461eec12012c29b66525c270208d30be8f6da8e7
treecd756e3606697f1273655dd4593cab51df768458
parent212c7fd614377fef4415d94856a59e9f484aa439
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