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)
Mon, Feb 10, 9:44 AM
Unknown Object (File)
Sat, Feb 8, 9:42 PM
Unknown Object (File)
Mon, Feb 3, 3:42 AM
Unknown Object (File)
Fri, Jan 24, 7:49 PM
Unknown Object (File)
Wed, Jan 22, 12:43 AM
Unknown Object (File)
Tue, Jan 21, 11:53 AM
Unknown Object (File)
Jan 7 2025, 11:20 PM
Unknown Object (File)
Dec 11 2024, 9:58 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.