public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/3] Extract IFE logic to module
@ 2017-02-01 13:30 Yotam Gigi
  2017-02-01 13:30 ` [PATCH 1/3] net/sched: act_ife: Unexport ife_tlv_meta_encode Yotam Gigi
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Yotam Gigi @ 2017-02-01 13:30 UTC (permalink / raw)
  To: jhs, davem, netdev, mrv, eladr, jiri; +Cc: Yotam Gigi

Extract ife logic from the tc_ife action into an independent module, and
make the tc_ife action use it. This way, the ife encapsulation can be used
by other modules other than tc_ife action.

v1->v2:
Fix duplicate symbol error by introducing a new patch that makes the
original symbol static.

The symbol ife_tlv_meta_extract is exported in act_ife, though not being
used by any other module. As the symbol is being moved to the new ife
module, introducing the new module creates duplicate symbol. To fix it,
add a new patch (1/3) that makes the ife_tlv_meta_extract symbol static in
act_ife, thus the symbol does not collide.

Yotam Gigi (3):
  net/sched: act_ife: Unexport ife_tlv_meta_encode
  net: Introduce ife encapsulation module
  net/sched: act_ife: Change to use ife module

 MAINTAINERS                        |   7 ++
 include/net/ife.h                  |  51 +++++++++++++
 include/net/tc_act/tc_ife.h        |   3 -
 include/uapi/linux/Kbuild          |   1 +
 include/uapi/linux/ife.h           |  18 +++++
 include/uapi/linux/tc_act/tc_ife.h |  10 +--
 net/Kconfig                        |   1 +
 net/Makefile                       |   1 +
 net/ife/Kconfig                    |  16 +++++
 net/ife/Makefile                   |   5 ++
 net/ife/ife.c                      | 142 +++++++++++++++++++++++++++++++++++++
 net/sched/Kconfig                  |   1 +
 net/sched/act_ife.c                | 110 +++++++++-------------------
 13 files changed, 276 insertions(+), 90 deletions(-)
 create mode 100644 include/net/ife.h
 create mode 100644 include/uapi/linux/ife.h
 create mode 100644 net/ife/Kconfig
 create mode 100644 net/ife/Makefile
 create mode 100644 net/ife/ife.c

-- 
2.4.11

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-02-03 13:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-01 13:30 [PATCH v2 net-next 0/3] Extract IFE logic to module Yotam Gigi
2017-02-01 13:30 ` [PATCH 1/3] net/sched: act_ife: Unexport ife_tlv_meta_encode Yotam Gigi
2017-02-03 13:05   ` Jamal Hadi Salim
2017-02-03 13:30   ` Roman Mashak
2017-02-01 13:30 ` [PATCH 2/3] net: Introduce ife encapsulation module Yotam Gigi
2017-02-03 13:06   ` Jamal Hadi Salim
2017-02-03 13:31   ` Roman Mashak
2017-02-01 13:30 ` [PATCH 3/3] net/sched: act_ife: Change to use ife module Yotam Gigi
2017-02-03 13:08   ` Jamal Hadi Salim
2017-02-03 13:31   ` Roman Mashak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox