Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2015 21:51:13 +0000
From:      "glebius (Gleb Smirnoff)" <phabric-noreply@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   [Differential] [Changed Subscribers] D1965: Add extended media types to if_media.h and ifconfig
Message-ID:  <ff319e870fdf20b69fca2c08a012ab17@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-wmivfv4ykbzcrvhy2wyl-req@FreeBSD.org>
References:  <differential-rev-PHID-DREV-wmivfv4ykbzcrvhy2wyl-req@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
glebius added a subscriber: glebius.
glebius added a comment.

We can't and don't plan to preserve the driver KPI for the 11 branch. We
actually plan to change it very much, in sake of keeping it stable there
on. Please see on what is going on in the projects/ifnet branch.

So, I'd suggest to introduce new 'struct ifmedia' with enough space,
and of course put extra space in there. Give a new value to SIOCGIFMEDIA.
Write a new clear code to handle it, without any extended bit tricks.

For the sake of userland API, save old current 'struct ifmedia' as
'struct oifmedia', and take old value of ioctl to OSIOCIGIFMEDIA.
Keep current code for old APU, only renaming the struct and ioctl
value.

REVISION DETAIL
  https://reviews.freebsd.org/D1965

To: erj, gnn, jfvogel, adrian
Cc: glebius, freebsd-net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ff319e870fdf20b69fca2c08a012ab17>