[dpdk-dev] net: update licence for network headers

Message ID 20171208102830.2817-1-olivier.matz@6wind.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Olivier Matz Dec. 8, 2017, 10:28 a.m. UTC
  To be compliant with the DPDK licensing guidelines, switch to
BSD-3-Clause. It can be done safely since the BSD headers from which
these files derive also exist as a BSD-3-Clause license in FreeBSD.

Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip_icmp.h
Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip.h
Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/sctp.h
Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/tcp.h
Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/udp.h
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
---
 lib/librte_net/rte_icmp.h | 67 ++++---------------------------------------
 lib/librte_net/rte_ip.h   | 72 ++++-------------------------------------------
 lib/librte_net/rte_sctp.h | 70 ++++-----------------------------------------
 lib/librte_net/rte_tcp.h  | 70 ++++-----------------------------------------
 lib/librte_net/rte_udp.h  | 70 ++++-----------------------------------------
 5 files changed, 26 insertions(+), 323 deletions(-)
  

Comments

Ferruh Yigit Dec. 8, 2017, 5:29 p.m. UTC | #1
On 12/8/2017 2:28 AM, Olivier Matz wrote:
> To be compliant with the DPDK licensing guidelines, switch to
> BSD-3-Clause. It can be done safely since the BSD headers from which
> these files derive also exist as a BSD-3-Clause license in FreeBSD.
> 
> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip_icmp.h
> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip.h
> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/sctp.h
> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/tcp.h
> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/udp.h
> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>

<...>

> + * SPDX-License-Identifier: BSD-3-Clause
>   *
> - *      @(#)in.h        8.3 (Berkeley) 1/3/94
> - * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
> + * Copyright(c) 1982, 1986, 1990, 1993
> + *      The Regents of the University of California.
> + * Copyright(c) 2013 6WIND S.A.
> + * All rights reserved.
>   */

Not sure how much it matters but in the document Hemant put, order is different,
it starts with Copyright line instead of SPDX line:

"
Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
SPDX-License-Identifier:        BSD-3-Clause
"

So I assume for multiple Copyright holder:

"
Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
SPDX-License-Identifier:        BSD-3-Clause
"

And do we still need "All rights reserved." ?


I am for following same syntax in all files (whichever is chosen), this may
helps us in the future for scripting licensing checks.

<...>
  
Stephen Hemminger Dec. 8, 2017, 6:04 p.m. UTC | #2
On Fri, 8 Dec 2017 09:29:57 -0800
Ferruh Yigit <ferruh.yigit@intel.com> wrote:

> On 12/8/2017 2:28 AM, Olivier Matz wrote:
> > To be compliant with the DPDK licensing guidelines, switch to
> > BSD-3-Clause. It can be done safely since the BSD headers from which
> > these files derive also exist as a BSD-3-Clause license in FreeBSD.
> > 
> > Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip_icmp.h
> > Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip.h
> > Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/sctp.h
> > Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/tcp.h
> > Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/udp.h
> > Signed-off-by: Olivier Matz <olivier.matz@6wind.com>  
> 
> <...>
> 
> > + * SPDX-License-Identifier: BSD-3-Clause
> >   *
> > - *      @(#)in.h        8.3 (Berkeley) 1/3/94
> > - * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
> > + * Copyright(c) 1982, 1986, 1990, 1993
> > + *      The Regents of the University of California.
> > + * Copyright(c) 2013 6WIND S.A.
> > + * All rights reserved.
> >   */  
> 
> Not sure how much it matters but in the document Hemant put, order is different,
> it starts with Copyright line instead of SPDX line:
> 
> "
> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
> SPDX-License-Identifier:        BSD-3-Clause
> "
> 
> So I assume for multiple Copyright holder:
> 
> "
> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
> SPDX-License-Identifier:        BSD-3-Clause
> "
> 
> And do we still need "All rights reserved." ?
> 
> 
> I am for following same syntax in all files (whichever is chosen), this may
> helps us in the future for scripting licensing checks.
> 
> <...>

Let's follow kernel policy where SPDX-License MUST be first line in the file.
  
Andrew Rybchenko Dec. 8, 2017, 6:22 p.m. UTC | #3
On 12/08/2017 08:29 PM, Ferruh Yigit wrote:
> On 12/8/2017 2:28 AM, Olivier Matz wrote:
>> To be compliant with the DPDK licensing guidelines, switch to
>> BSD-3-Clause. It can be done safely since the BSD headers from which
>> these files derive also exist as a BSD-3-Clause license in FreeBSD.
>>
>> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip_icmp.h
>> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip.h
>> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/sctp.h
>> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/tcp.h
>> Link: https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/udp.h
>> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
> <...>
>
>> + * SPDX-License-Identifier: BSD-3-Clause
>>    *
>> - *      @(#)in.h        8.3 (Berkeley) 1/3/94
>> - * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
>> + * Copyright(c) 1982, 1986, 1990, 1993
>> + *      The Regents of the University of California.
>> + * Copyright(c) 2013 6WIND S.A.
>> + * All rights reserved.
>>    */
> Not sure how much it matters but in the document Hemant put, order is different,
> it starts with Copyright line instead of SPDX line:
>
> "
> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
> SPDX-License-Identifier:        BSD-3-Clause
> "
>
> So I assume for multiple Copyright holder:
>
> "
> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
> SPDX-License-Identifier:        BSD-3-Clause
> "
>
> And do we still need "All rights reserved." ?
>
>
> I am for following same syntax in all files (whichever is chosen), this may
> helps us in the future for scripting licensing checks.
>
> <...>

License text example in [1] starts from Copyright and has All rights 
reserved.
I agree that template should be clearly specified from the very beginning.

[1] https://spdx.org/licenses/BSD-3-Clause#licenseText
  
Hemant Agrawal Dec. 11, 2017, 5:27 a.m. UTC | #4
On 12/8/2017 11:52 PM, Andrew Rybchenko wrote:
> On 12/08/2017 08:29 PM, Ferruh Yigit wrote:
>> On 12/8/2017 2:28 AM, Olivier Matz wrote:
>>> To be compliant with the DPDK licensing guidelines, switch to
>>> BSD-3-Clause. It can be done safely since the BSD headers from which
>>> these files derive also exist as a BSD-3-Clause license in FreeBSD.
>>>
>>> Link:
>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip_icmp.h
>>>
>>> Link:
>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip.h
>>>
>>> Link:
>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/sctp.h
>>>
>>> Link:
>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/tcp.h
>>>
>>> Link:
>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/udp.h
>>>
>>> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
>> <...>
>>
>>> + * SPDX-License-Identifier: BSD-3-Clause
>>>    *
>>> - *      @(#)in.h        8.3 (Berkeley) 1/3/94
>>> - * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
>>> + * Copyright(c) 1982, 1986, 1990, 1993
>>> + *      The Regents of the University of California.
>>> + * Copyright(c) 2013 6WIND S.A.
>>> + * All rights reserved.
>>>    */
>> Not sure how much it matters but in the document Hemant put, order is
>> different,
>> it starts with Copyright line instead of SPDX line:
>>
>> "
>> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
>> SPDX-License-Identifier:        BSD-3-Clause
>> "
>>
>> So I assume for multiple Copyright holder:
>>
>> "
>> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
>> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
>> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
>> SPDX-License-Identifier:        BSD-3-Clause
>> "
>>
>> And do we still need "All rights reserved." ?
>>
>>
>> I am for following same syntax in all files (whichever is chosen),
>> this may
>> helps us in the future for scripting licensing checks.
>>
>> <...>
>
> License text example in [1] starts from Copyright and has All rights
> reserved.
> I agree that template should be clearly specified from the very beginning.
>
> [1] https://spdx.org/licenses/BSD-3-Clause#licenseText
>
Hi all,
	Most templates are showing copyright first and SPDX later i.e. the 
typical way for writing the license.

However some projects has followed it other way around to make it easy 
for tools i.e. the TOP line.

I agree with Ferruh that we shall follow single convention.  I will 
prefer to do it in following way to make it consistent. (I will also fix 
my change patches).

 >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
 >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
 >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
 >> SPDX-License-Identifier:        BSD-3-Clause


Regards,
Hemant
  
Olivier Matz Dec. 11, 2017, 8:58 a.m. UTC | #5
On Mon, Dec 11, 2017 at 10:57:41AM +0530, Hemant Agrawal wrote:
[...]
> > License text example in [1] starts from Copyright and has All rights
> > reserved.
> > I agree that template should be clearly specified from the very beginning.
> > 
> > [1] https://spdx.org/licenses/BSD-3-Clause#licenseText
> > 
> Hi all,
> 	Most templates are showing copyright first and SPDX later i.e. the typical
> way for writing the license.
> 
> However some projects has followed it other way around to make it easy for
> tools i.e. the TOP line.
> 
> I agree with Ferruh that we shall follow single convention.  I will prefer
> to do it in following way to make it consistent. (I will also fix my change
> patches).
> 
> >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
> >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
> >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
> >> SPDX-License-Identifier:        BSD-3-Clause

OK for me, I'll send a v2.

Olivier
  
Ferruh Yigit Dec. 11, 2017, 5:56 p.m. UTC | #6
On 12/10/2017 9:27 PM, Hemant Agrawal wrote:
> On 12/8/2017 11:52 PM, Andrew Rybchenko wrote:
>> On 12/08/2017 08:29 PM, Ferruh Yigit wrote:
>>> On 12/8/2017 2:28 AM, Olivier Matz wrote:
>>>> To be compliant with the DPDK licensing guidelines, switch to
>>>> BSD-3-Clause. It can be done safely since the BSD headers from which
>>>> these files derive also exist as a BSD-3-Clause license in FreeBSD.
>>>>
>>>> Link:
>>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip_icmp.h
>>>>
>>>> Link:
>>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/ip.h
>>>>
>>>> Link:
>>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/sctp.h
>>>>
>>>> Link:
>>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/tcp.h
>>>>
>>>> Link:
>>>> https://raw.githubusercontent.com/freebsd/freebsd/78a6b0861813af31e1354fa407c5701e8764b4d6/sys/netinet/udp.h
>>>>
>>>> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
>>> <...>
>>>
>>>> + * SPDX-License-Identifier: BSD-3-Clause
>>>>    *
>>>> - *      @(#)in.h        8.3 (Berkeley) 1/3/94
>>>> - * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
>>>> + * Copyright(c) 1982, 1986, 1990, 1993
>>>> + *      The Regents of the University of California.
>>>> + * Copyright(c) 2013 6WIND S.A.
>>>> + * All rights reserved.
>>>>    */
>>> Not sure how much it matters but in the document Hemant put, order is
>>> different,
>>> it starts with Copyright line instead of SPDX line:
>>>
>>> "
>>> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
>>> SPDX-License-Identifier:        BSD-3-Clause
>>> "
>>>
>>> So I assume for multiple Copyright holder:
>>>
>>> "
>>> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
>>> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
>>> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
>>> SPDX-License-Identifier:        BSD-3-Clause
>>> "
>>>
>>> And do we still need "All rights reserved." ?
>>>
>>>
>>> I am for following same syntax in all files (whichever is chosen),
>>> this may
>>> helps us in the future for scripting licensing checks.
>>>
>>> <...>
>>
>> License text example in [1] starts from Copyright and has All rights
>> reserved.
>> I agree that template should be clearly specified from the very beginning.
>>
>> [1] https://spdx.org/licenses/BSD-3-Clause#licenseText
>>
> Hi all,
> 	Most templates are showing copyright first and SPDX later i.e. the 
> typical way for writing the license.
> 
> However some projects has followed it other way around to make it easy 
> for tools i.e. the TOP line.
> 
> I agree with Ferruh that we shall follow single convention.  I will 
> prefer to do it in following way to make it consistent. (I will also fix 
> my change patches).
> 
>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
>  >> SPDX-License-Identifier:        BSD-3-Clause

Stephen mentioned Linux already has a defined syntax for this, unless there is a
good reason to change I think we can follow same syntax, what do you think?

> 
> 
> Regards,
> Hemant
> 
>
  
Olivier Matz Dec. 12, 2017, 4:57 p.m. UTC | #7
On Mon, Dec 11, 2017 at 09:56:40AM -0800, Ferruh Yigit wrote:
> On 12/10/2017 9:27 PM, Hemant Agrawal wrote:
> > Hi all,
> > 	Most templates are showing copyright first and SPDX later i.e. the 
> > typical way for writing the license.
> > 
> > However some projects has followed it other way around to make it easy 
> > for tools i.e. the TOP line.
> > 
> > I agree with Ferruh that we shall follow single convention.  I will 
> > prefer to do it in following way to make it consistent. (I will also fix 
> > my change patches).
> > 
> >  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
> >  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
> >  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
> >  >> SPDX-License-Identifier:        BSD-3-Clause
> 
> Stephen mentioned Linux already has a defined syntax for this, unless there is a
> good reason to change I think we can follow same syntax, what do you think?

As far as I can see, it's not yet integrated in Linux. The latest
documentation I can find as of today is:
https://patchwork.kernel.org/patch/10091607/

About the first line:

"""
   The SPDX license identifier in kernel files shall be added at the first
   possible line in a file which can contain a comment.  For the majority
"""

Some recomandations look a bit inconsistent to me, but I didn't follow
all the history:

"""
      C source:	// SPDX-License-Identifier: <SPDX License Expression>
      C header:	/* SPDX-License-Identifier: <SPDX License Expression> */
"""


Olivier
  
Hemant Agrawal Dec. 13, 2017, 5:13 a.m. UTC | #8
On 12/12/2017 10:27 PM, Olivier MATZ wrote:
> On Mon, Dec 11, 2017 at 09:56:40AM -0800, Ferruh Yigit wrote:
>> On 12/10/2017 9:27 PM, Hemant Agrawal wrote:
>>> Hi all,
>>> 	Most templates are showing copyright first and SPDX later i.e. the
>>> typical way for writing the license.
>>>
>>> However some projects has followed it other way around to make it easy
>>> for tools i.e. the TOP line.
>>>
>>> I agree with Ferruh that we shall follow single convention.  I will
>>> prefer to do it in following way to make it consistent. (I will also fix
>>> my change patches).
>>>
>>>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
>>>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
>>>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
>>>  >> SPDX-License-Identifier:        BSD-3-Clause
>>
>> Stephen mentioned Linux already has a defined syntax for this, unless there is a
>> good reason to change I think we can follow same syntax, what do you think?
>
> As far as I can see, it's not yet integrated in Linux. The latest
> documentation I can find as of today is:
> https://patchwork.kernel.org/patch/10091607/
>
> About the first line:
>
> """
>    The SPDX license identifier in kernel files shall be added at the first
>    possible line in a file which can contain a comment.  For the majority
> """
>
> Some recomandations look a bit inconsistent to me, but I didn't follow
> all the history:
>
> """
>       C source:	// SPDX-License-Identifier: <SPDX License Expression>
>       C header:	/* SPDX-License-Identifier: <SPDX License Expression> */
> """
>
>

I tried to study the other repositories using the SPDX tagging e.g. 
uboot (http://git.denx.de/?p=u-boot.git;a=tree) and odp etc. They 
followed the syntax of copyright followed by SPDX.

Also, typically all dpdk files starts with "/*-", I am not sure about 
the purpose of the "-"?



> Olivier
>
  
Hemant Agrawal Dec. 14, 2017, 11:33 a.m. UTC | #9
On 12/13/2017 10:43 AM, Hemant Agrawal wrote:
> On 12/12/2017 10:27 PM, Olivier MATZ wrote:
>> On Mon, Dec 11, 2017 at 09:56:40AM -0800, Ferruh Yigit wrote:
>>> On 12/10/2017 9:27 PM, Hemant Agrawal wrote:
>>>> Hi all,
>>>>     Most templates are showing copyright first and SPDX later i.e. the
>>>> typical way for writing the license.
>>>>
>>>> However some projects has followed it other way around to make it easy
>>>> for tools i.e. the TOP line.
>>>>
>>>> I agree with Ferruh that we shall follow single convention.  I will
>>>> prefer to do it in following way to make it consistent. (I will also
>>>> fix
>>>> my change patches).
>>>>
>>>>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER
>>>>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-2
>>>>  >> Copyright (C) [YEAR] NAME-OF-COPYRIGHT-HOLDER-3
>>>>  >> SPDX-License-Identifier:        BSD-3-Clause
>>>
>>> Stephen mentioned Linux already has a defined syntax for this, unless
>>> there is a
>>> good reason to change I think we can follow same syntax, what do you
>>> think?
>>
>> As far as I can see, it's not yet integrated in Linux. The latest
>> documentation I can find as of today is:
>> https://patchwork.kernel.org/patch/10091607/
>>
>> About the first line:
>>
>> """
>>    The SPDX license identifier in kernel files shall be added at the
>> first
>>    possible line in a file which can contain a comment.  For the majority
>> """
>>
>> Some recomandations look a bit inconsistent to me, but I didn't follow
>> all the history:
>>
>> """
>>       C source:    // SPDX-License-Identifier: <SPDX License Expression>
>>       C header:    /* SPDX-License-Identifier: <SPDX License
>> Expression> */
>> """
>>
>>
>
> I tried to study the other repositories using the SPDX tagging e.g.
> uboot (http://git.denx.de/?p=u-boot.git;a=tree) and odp etc. They
> followed the syntax of copyright followed by SPDX.

Thomas,
	Before I rework,
	What is your opinion w.r.t tooling in DPDK w.r.t SPDX.

I saw a patch for checkpatch in Linux, which will also check for SPDX 
presence for any new file, however this patch only checked first two 
line for SPDX presence. (currently it is nak for other reasons)

https://patchwork.kernel.org/patch/10053699/

If it makes easy for us, we can use the SPDX as first/second line 
convention.


regards,
Hemant


>
> Also, typically all dpdk files starts with "/*-", I am not sure about
> the purpose of the "-"?
>





>
>
>> Olivier
>>
>
>
  
Thomas Monjalon Dec. 14, 2017, 12:58 p.m. UTC | #10
14/12/2017 12:33, Hemant Agrawal:
> Thomas,
> 	Before I rework,
> 	What is your opinion w.r.t tooling in DPDK w.r.t SPDX.
> 
> I saw a patch for checkpatch in Linux, which will also check for SPDX 
> presence for any new file, however this patch only checked first two 
> line for SPDX presence. (currently it is nak for other reasons)
> 
> https://patchwork.kernel.org/patch/10053699/
> 
> If it makes easy for us, we can use the SPDX as first/second line 
> convention.

I agree we should follow the convention chosen in Linux,
because we may use the same tools.
Is it already decided for Linux? Can we influence the decision for Linux?
  
Hemant Agrawal Dec. 15, 2017, 10:54 a.m. UTC | #11
On 12/14/2017 6:28 PM, Thomas Monjalon wrote:
> 14/12/2017 12:33, Hemant Agrawal:
>> Thomas,
>> 	Before I rework,
>> 	What is your opinion w.r.t tooling in DPDK w.r.t SPDX.
>>
>> I saw a patch for checkpatch in Linux, which will also check for SPDX
>> presence for any new file, however this patch only checked first two
>> line for SPDX presence. (currently it is nak for other reasons)
>>
>> https://patchwork.kernel.org/patch/10053699/
>>
>> If it makes easy for us, we can use the SPDX as first/second line
>> convention.
>
> I agree we should follow the convention chosen in Linux,
> because we may use the same tools.
> Is it already decided for Linux? Can we influence the decision for Linux?
>

I have posted my comments on other thread. Linux have good reasons to do 
it. If we have to use linux tool and common code, we shall adapt to same.
  

Patch

diff --git a/lib/librte_net/rte_icmp.h b/lib/librte_net/rte_icmp.h
index 8b287f6d0..16f2eccc0 100644
--- a/lib/librte_net/rte_icmp.h
+++ b/lib/librte_net/rte_icmp.h
@@ -1,67 +1,10 @@ 
-/*   BSD LICENSE
- *
- *   Copyright(c) 2013 6WIND.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of 6WIND S.A. nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
 /*
- * Copyright (c) 1982, 1986, 1990, 1993
- *      The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *      This product includes software developed by the University of
- *      California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * SPDX-License-Identifier: BSD-3-Clause
  *
- *      @(#)in.h        8.3 (Berkeley) 1/3/94
- * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
+ * Copyright(c) 1982, 1986, 1990, 1993
+ *      The Regents of the University of California.
+ * Copyright(c) 2013 6WIND S.A.
+ * All rights reserved.
  */
 
 #ifndef _RTE_ICMP_H_
diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h
index 73ec398fc..18a5d07de 100644
--- a/lib/librte_net/rte_ip.h
+++ b/lib/librte_net/rte_ip.h
@@ -1,71 +1,11 @@ 
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- *   Copyright 2014 6WIND S.A.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
 /*
- * Copyright (c) 1982, 1986, 1990, 1993
- *      The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *      This product includes software developed by the University of
- *      California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * SPDX-License-Identifier: BSD-3-Clause
  *
- *      @(#)in.h        8.3 (Berkeley) 1/3/94
- * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
+ * Copyright(c) 1982, 1986, 1990, 1993
+ *      The Regents of the University of California.
+ * Copyright(c) 2010-2014 Intel Corporation.
+ * Copyright(c) 2014 6WIND S.A.
+ * All rights reserved.
  */
 
 #ifndef _RTE_IP_H_
diff --git a/lib/librte_net/rte_sctp.h b/lib/librte_net/rte_sctp.h
index 688e126fa..4aa3c907c 100644
--- a/lib/librte_net/rte_sctp.h
+++ b/lib/librte_net/rte_sctp.h
@@ -1,70 +1,10 @@ 
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
 /*
- * Copyright (c) 1982, 1986, 1990, 1993
- *      The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *      This product includes software developed by the University of
- *      California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
+ * SPDX-License-Identifier: BSD-3-Clause
  *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- *      @(#)in.h        8.3 (Berkeley) 1/3/94
- * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
+ * Copyright (c) 1982, 1986, 1990, 1993
+ *      The Regents of the University of California.
+ * Copyright (c) 2010-2014 Intel Corporation.
+ * All rights reserved.
  */
 
 /**
diff --git a/lib/librte_net/rte_tcp.h b/lib/librte_net/rte_tcp.h
index 28b61e6d4..550e10a13 100644
--- a/lib/librte_net/rte_tcp.h
+++ b/lib/librte_net/rte_tcp.h
@@ -1,70 +1,10 @@ 
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
 /*
- * Copyright (c) 1982, 1986, 1990, 1993
- *      The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *      This product includes software developed by the University of
- *      California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * SPDX-License-Identifier: BSD-3-Clause
  *
- *      @(#)in.h        8.3 (Berkeley) 1/3/94
- * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
+ * Copyright(c) 1982, 1986, 1990, 1993
+ *      The Regents of the University of California.
+ * Copyright(c) 2010-2014 Intel Corporation.
+ * All rights reserved.
  */
 
 #ifndef _RTE_TCP_H_
diff --git a/lib/librte_net/rte_udp.h b/lib/librte_net/rte_udp.h
index bc5be4af5..b315a5131 100644
--- a/lib/librte_net/rte_udp.h
+++ b/lib/librte_net/rte_udp.h
@@ -1,70 +1,10 @@ 
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
 /*
- * Copyright (c) 1982, 1986, 1990, 1993
- *      The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *      This product includes software developed by the University of
- *      California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * SPDX-License-Identifier: BSD-3-Clause
  *
- *      @(#)in.h        8.3 (Berkeley) 1/3/94
- * $FreeBSD: src/sys/netinet/in.h,v 1.82 2003/10/25 09:37:10 ume Exp $
+ * Copyright(c) 1982, 1986, 1990, 1993
+ *      The Regents of the University of California.
+ * Copyright(c) 2010-2014 Intel Corporation.
+ * All rights reserved.
  */
 
 #ifndef _RTE_UDP_H_