]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/commit
dualemac: fix to drop PTP sync msgs from unknown master release/PROCESSOR-SDK_06.02.00
authorAaron Kramer <a-kramer@ti.com>
Thu, 19 Dec 2019 17:53:13 +0000 (12:53 -0500)
committerAaron Kramer <a-kramer@ti.com>
Thu, 19 Dec 2019 18:28:12 +0000 (13:28 -0500)
commit2357d1436f1b2c3b5f1d0c9c94e045d33b63f3fe
tree68c6982646bbbcf9aee1eb2ad4a89abddb13719a
parentdb6617355928f9aed72bd3158ed86eea2fa81f35
dualemac: fix to drop PTP sync msgs from unknown master

Re-adding this change as it was reverted in another commit.

In PTP implementation, firmware should drop sync messages that are not
from the PTP master (where master MAC addr is stored in SRAM by driver).
In DualEMAC build, the host_rcv flag is checked in different places than
Switch build, and to enable dropping unknown sync msgs needs to be
checked immediately after completing PTP timestamping function to
prevent the frame from being forwarded to host.

This change adds a check of host_rcv flag immediately after PTP
timestamping
function, to skip host rcv if set.

Signed-off-by: Aaron Kramer a-kramer@ti.com
packages/ti/drv/icss_emac/firmware/icss_dualemac/src/emac_MII_Rcv.asm