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)
Wed, Dec 11, 9:58 PM
Unknown Object (File)
Sep 30 2024, 6:49 PM
Unknown Object (File)
Sep 27 2024, 8:15 AM
Unknown Object (File)
Sep 22 2024, 11:39 PM
Unknown Object (File)
Sep 19 2024, 3:22 PM
Unknown Object (File)
Sep 8 2024, 10:28 PM
Unknown Object (File)
Sep 7 2024, 7:24 PM
Unknown Object (File)
Sep 7 2024, 5:13 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 โ†—(On Diff #12412)

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 โ†—(On Diff #12412)

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.