net/bnxt: fix timesync when PTP is not supported
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 18 Mar 2021 09:35:23 +0000 (15:05 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 19 Mar 2021 19:29:55 +0000 (20:29 +0100)
commitab15dd5a1c4d563e80b10e42e39c4d2f010fa389
treee0adff8a154e5295b74059fe024b900476694ac0
parent586d9da38aaa19bfe2e804c4038c3d0ec0a3ef99
net/bnxt: fix timesync when PTP is not supported

Fixed to return error when PTP support is not supported on the port.
Also, removed an unnecessary check inside bnxt_get_rx_ts().

Fixes: b11cceb83a34 ("net/bnxt: support timesync")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c