Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2014 12:13:42 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        FreeBSD Current <current@freebsd.org>, Gleb Smirnoff <glebius@freebsd.org>
Cc:        George Neville-Neil <gnn@neville-neil.com>, Stefano Garzarella <stefanogarzarella@gmail.com>
Subject:   RFC: please put back spare fields in struct ifnet (removed in svn 270870)
Message-ID:  <CA%2BhQ2%2BiLGH%2Bh6asbQSES0P134_5KUgnt8Ve__UQgf9cwu_97eA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hi,
sorry if i just noticed it recently.

svn 270870 removed all the if_*spare fields in struct ifnet.
They are replaced with the following comment

/*
 * Spare fields to be added before branching a stable branch, so
 * that structure can be enhanced without changing the kernel
 * binary interface.
 */

=E2=80=8Bwhich leaves me a bit unhappy.
Having a stable ABI is useful not only for stable branches,
but also (I would say even more) with head, so people can
run experimental code with limited modifications to the sources.

Cases in point:
- we used one spare field extensively when experimenting
  with netmap, and being able to just build a module without having
  to recompile the whole kernel was a big win.
- we are developing some software GSO and again it was great to have
  the spares in the tcpcb and in the ifnet so we could limit
  modifications to headers used by multiple sources.

I would kindly suggest to put the spares back.
I can't see how they can possibly harm.

thanks
luigi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2BiLGH%2Bh6asbQSES0P134_5KUgnt8Ve__UQgf9cwu_97eA>