Page MenuHomeFreeBSD

dpaa2: cleanup
ClosedPublic

Authored by tuexen on Tue, Jan 20, 8:14 PM.
Tags
None
Referenced Files
F142724383: D54805.diff
Thu, Jan 22, 5:30 PM
F142683676: D54805.id170155.diff
Thu, Jan 22, 5:24 AM
F142647656: D54805.id170176.diff
Wed, Jan 21, 8:27 PM
Unknown Object (File)
Wed, Jan 21, 2:43 PM
Unknown Object (File)
Wed, Jan 21, 5:33 AM
Unknown Object (File)
Wed, Jan 21, 1:21 AM
Unknown Object (File)
Wed, Jan 21, 12:11 AM
Unknown Object (File)
Tue, Jan 20, 11:23 PM
Subscribers

Details

Summary

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

bz added a subscriber: bz.

Functionally accepted.

sys/dev/dpaa2/dpaa2_ni.c
2601–2604

Style would say this should be checked against != 0

If we are touching it, we should fix it ;-)

2603

dito

This revision is now accepted and ready to land.Tue, Jan 20, 8:18 PM

PS: I should really go and read the specs to see if we can steer v4 and v6 independently but my memory says we cannot.

Address style comment raised by bz.

This revision now requires review to proceed.Tue, Jan 20, 8:30 PM
tuexen added inline comments.
sys/dev/dpaa2/dpaa2_ni.c
2601–2604

Both fixed.

This revision is now accepted and ready to land.Tue, Jan 20, 9:10 PM
This revision was automatically updated to reflect the committed changes.

Seems to improve the code. Less lines and it looks less complex. This changes the functionality only if IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 or IFCAP_TXCSUM and IFCAP_TXCSUM_IPV6 get out of sync but, in my understanding of the code, this cannot happen.