[qca-nss-sfe] Fix UDP socket handling.
- __udp4_lib_lookup matches parameter "daddr" with local socket address.
Hence, need to pass local address as the destination.
- UDP checksum should be skipped for zero checksum value.
- UDP socket can be used for control packets that need to be passed to userspace.
Hence, SFE can't drop those packets and has to resubmit them into Linux stack.
Change-Id: Ia51e95791afe33078d9ba8001a05686892aab0a7
Signed-off-by: Hardik S. Panchal <quic_hpanchal@quicinc.com>
3 files changed