summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/ibcs2_ipc.h
diff options
context:
space:
mode:
authorrpokala <rpokala@FreeBSD.org>2017-05-18 23:41:34 +0000
committerRenato Botelho <renato@netgate.com>2017-05-19 07:19:42 -0300
commit4b68fbd1711d1d4d2c7e77e04ffc47257366ac90 (patch)
tree225676e16284d3925ad88f04a8c6b30f4b9cf7d7 /sys/i386/ibcs2/ibcs2_ipc.h
parentd97064d770b5fe7f4ea2dc4cd031e829b1a1a0e3 (diff)
downloadFreeBSD-src-4b68fbd1711d1d4d2c7e77e04ffc47257366ac90.zip
FreeBSD-src-4b68fbd1711d1d4d2c7e77e04ffc47257366ac90.tar.gz
Persistently store NIC's hardware MAC address, and add a way to retrive it
jhb pointed out that (struct ifnet) is part of the network driver KBI, and thus the offsets of internal fields must not change. Therefore, move the new "if_hw_addr" field to the end, and consume one of the "if_pspare"s; that's what they're there for. Because netmap on stable/10 uses "if_pspare[0]", the new field replaces the *last* element of that array; that way, offsetof(if_pspare) is unchanged compared to before r318430. PR: 194386 Reviewed by: jhb Pointyhat to: rpokala Sponsored by: Panasas (cherry picked from commit 2f103d239c07e4f88b9852f3b8689f100d7a31d0)
Diffstat (limited to 'sys/i386/ibcs2/ibcs2_ipc.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud