public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: David Lebrun <dav.lebrun@gmail•com>
To: Ahmed Abdelsalam <amsalam20@gmail•com>,
	davem@davemloft•net, kuznet@ms2•inr.ac.ru,
	yoshfuji@linux-ipv6•org
Cc: david.lebrun@uclouvain•be, netdev@vger•kernel.org
Subject: Re: [net-next] ipv6: sr: export some functions of seg6local
Date: Tue, 2 Jan 2018 20:11:48 +0000	[thread overview]
Message-ID: <744656e9-b277-2915-e575-aea8b2c083be@gmail.com> (raw)
In-Reply-To: <1514581784-1527-1-git-send-email-amsalam20@gmail.com>

On 12/29/2017 09:09 PM, Ahmed Abdelsalam wrote:
> Some functions of seg6local are very useful to process SRv6
> encapsulated packets.
> 
> This patch exports some functions of seg6local that are useful and
> can be re-used at different parts of the kernel.
> 
> The set of exported functions are:
> (1) get_srh()
> (2) advance_nextseg()
> (3) lookup_nexthop

If you want to export those functions, it's better to prefix them with
e.g. seg6_:

seg6_get_srh()
seg6_advance_nextseg()
seg6_lookup_nexthop()

David

  reply	other threads:[~2018-01-02 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-29 21:09 [net-next] ipv6: sr: export some functions of seg6local Ahmed Abdelsalam
2018-01-02 20:11 ` David Lebrun [this message]
2018-01-02 20:25   ` Ahmed Abdelsalam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=744656e9-b277-2915-e575-aea8b2c083be@gmail.com \
    --to=dav.lebrun@gmail$(echo .)com \
    --cc=amsalam20@gmail$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=david.lebrun@uclouvain$(echo .)be \
    --cc=kuznet@ms2$(echo .)inr.ac.ru \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=yoshfuji@linux-ipv6$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox