Page MenuHomeFreeBSD

hyperv/hn: Use m_copydata for chimney sending.
ClosedPublic

Authored by sepherosa_gmail.com on Jan 18 2016, 8:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 24, 8:46 AM
Unknown Object (File)
Thu, Apr 24, 6:53 AM
Unknown Object (File)
Sun, Apr 20, 8:25 PM
Unknown Object (File)
Mon, Apr 14, 7:26 AM
Unknown Object (File)
Mon, Apr 14, 2:43 AM
Unknown Object (File)
Mon, Apr 14, 2:12 AM
Unknown Object (File)
Mar 11 2025, 4:36 AM
Unknown Object (File)
Feb 10 2025, 9:44 AM
Subscribers

Details

Summary

While I'm here, move stack variables near their usage.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sepherosa_gmail.com retitled this revision from to hyperv/hn: Use m_copydata for chimney sending..
sepherosa_gmail.com updated this object.
sepherosa_gmail.com edited the test plan for this revision. (Show Details)

If no objection comes, it will be committed two days later

sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
947

why uint8*? the last parameter is caddr_t

m_copydata(const struct mbuf *mbuf, int offset, int len, caddr_t buf);

sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
947

caddr_t is char *, I generally like to use uint8_t * for byte array, instead of char *. I don't think we have -Wpointer-sign in kernel compiling cc flags, so uint8_t * has same effect as char */caddr_t for m_copydata()

delphij edited edge metadata.

Looks good to me.

This revision is now accepted and ready to land.Jan 19 2016, 1:28 AM
adrian edited edge metadata.
This revision was automatically updated to reflect the committed changes.