> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Jingju Hou
> Sent: Monday, January 23, 2017 12:11 PM
> To: da...@davemloft.net
> Cc: jszh...@marvell.com; thomas.petazz...@free-electrons.com;
> netdev@vger.kernel.org; Jingju
> -Original Message-
> From: Florian Fainelli [mailto:f.faine...@gmail.com]
> Sent: Tuesday, February 21, 2017 6:31 AM
> To: YUAN Linyu; David S . Miller; Andrew Lunn
> Cc: netdev@vger.kernel.org; cug...@163.com
> Subject: Re: create drivers/net/mdio and
> -Original Message-
> From: Florian Fainelli [mailto:f.faine...@gmail.com]
> Sent: Tuesday, February 21, 2017 6:31 AM
> To: YUAN Linyu; David S . Miller; Andrew Lunn
> Cc: netdev@vger.kernel.org; cug...@163.com
> Subject: Re: create drivers/net/mdio and
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Andrew Lunn
> Sent: Thursday, February 23, 2017 5:30 PM
> To: YUAN Linyu
> Cc: Florian Fainelli; David S . Miller; netdev@vger.kernel.org; cug...@163.com
>
Hi,
I have an idea to create drivers/net/mdio and move mdio
drivers(drivers/net/phy/mdio-* | drivers/net/ethernet/xxx/mdio-yyy | ) into it.
Do you think it is acceptable ?
Thanks
> -Original Message-
> From: Florian Fainelli [mailto:f.faine...@gmail.com]
> Sent: Monday, February 20, 2017 2:16 PM
> To: YUAN Linyu; David S . Miller; Andrew Lunn
> Cc: netdev@vger.kernel.org; cug...@163.com
> Subject: Re: create drivers/net/mdio and
hy-handle = <_phy2>;
phy-connection-type = "rgmii";
};
mdio: mdio@fc000 {
reg = ;
};
> -Original Message-
> From: Florian Fainelli [ma
> -Original Message-
> From: Florian Fainelli [mailto:f.faine...@gmail.com]
> Sent: Monday, February 20, 2017 1:42 PM
> To: YUAN Linyu; David S . Miller; Andrew Lunn
> Cc: netdev@vger.kernel.org; cug...@163.com
> Subject: Re: create drivers/net/mdio and move mdio dri
> -Original Message-
> From: Florian Fainelli [mailto:f.faine...@gmail.com]
> Sent: Monday, February 20, 2017 1:42 PM
> To: YUAN Linyu; David S . Miller; Andrew Lunn
> Cc: netdev@vger.kernel.org; cug...@163.com
> Subject: Re: create drivers/net/mdio and move mdio dri
> -Original Message-
> From: Andrew Lunn [mailto:and...@lunn.ch]
> Sent: Wednesday, February 22, 2017 6:21 PM
> To: YUAN Linyu
> Cc: Florian Fainelli; David S . Miller; netdev@vger.kernel.org; cug...@163.com
> Subject: Re: create drivers/net/mdio and move mdio drivers i
hi,
yes, my misunderstanding.
it's error when use after dup.
can we do a full size(SCM_MAX_FD) dup?
On 六, 2017-02-11 at 10:36 +0800, yuan linyu wrote:
> From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
>
> 'max' only used at three places in scm.c,
> 1. in scm_f
On 五, 2017-02-10 at 10:25 -0500, David Miller wrote:
> From: yuan linyu <cug...@163.com>
> Date: Fri, 10 Feb 2017 20:11:13 +0800
>
> > From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
> >
> > SCM_MAX_FD can fully replace it.
> >
> > Signed-
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
'max' only used at three places in scm.c,
1. in scm_fp_copy(), fpl->max = SCM_MAX_FD;
2. in scm_fp_copy(), if (fpl->count + num > fpl->max)
3. in scm_fp_dup(), new_fpl->max = new_fpl->count;
at place 2, fpl->max can
On 四, 2017-01-19 at 02:01 +0100, Andrew Lunn wrote:
> >
> > I will add two ethtool command in kernel to read and write register in PHY.
> Write access will get NACKed by me. Read only please.
some register need to write some value first then read.
if read only, it will not achieve the goal.
>
>
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
'max' only used at three places in scm.c,
1. in scm_fp_copy(), fpl->max = SCM_MAX_FD;
2. in scm_fp_copy(), if (fpl->count + num > fpl->max)
3. in scm_fp_dup(), new_fpl->max = new_fpl->count;
at place 3, the wors
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
SCM_MAX_FD can fully replace it.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
include/net/scm.h | 3 +--
net/core/scm.c| 20 +---
2 files changed, 6 insertions(+), 17 deletions(-)
diff --g
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Salil Mehta
> Sent: Thursday, February 09, 2017 5:24 PM
> To: da...@davemloft.net
> Cc: salil.me...@huawei.com; yisen.zhu...@huawei.com;
> mehta.salil@gmail.com;
> -Original Message-
> From: Zefir Kurtisi [mailto:zefir.kurt...@neratec.com]
>
> ... on the other hand, having direct RW access to MDIO regs can ease your life
> greatly during bring-up / debugging of PHYs.
>
> Attached is a patch we are using to track down PHY problems at register
On 日, 2017-01-15 at 18:21 +0100, Andrew Lunn wrote:
> On Sun, Jan 15, 2017 at 09:51:03AM +0800, yuan linyu wrote:
> >
> > I hope user/developer can read this attribute file "regs" to do
> > a full check of all registers value, and they can write any register
&
On 六, 2017-01-14 at 10:35 -0800, Florian Fainelli wrote:
> On 01/14/2017 08:24 AM, Andrew Lunn wrote:
> >
> > On Sat, Jan 14, 2017 at 10:46:31AM +0800, yuan linyu wrote:
> > >
> > > From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
> > >
&g
> -Original Message-
> From: David Miller [mailto:da...@davemloft.net]
> Sent: Tuesday, January 17, 2017 5:54 AM
> To: f.faine...@gmail.com
> Cc: cug...@163.com; and...@lunn.ch; netdev@vger.kernel.org; YUAN Linyu
> Subject: Re: [PATCH] net: add regs attribute to p
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
1. set interface address label to ioctl request device name is enough
2. when address pass inet_abc_len check, prefixlen less than 31 is always true
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv4/d
User space application require linux kernel to do rate limit to some type of
Ethernet packet(ARP, ICMP, TCP, for example 1000 packet/s) when system run
under Ethernet packet flooding test.
Do you know if kernel already exist a feature to implement this requirement?
Thanks
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
1. set interface address label to ioctl request device name is enough
2. when address pass inet_abc_len check, prefixlen < 31 is always true
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv4/devinet.c | 8 +
M
> To: YUAN Linyu
> Cc: David Miller; cug...@163.com; netdev@vger.kernel.org
> Subject: Re: [PATCH] net: ioctl SIOCSIFADDR minor cleanup
>
> On Tue, Nov 15, 2016 at 7:57 PM, YUAN Linyu
> <linyu.y...@alcatel-sbell.com.cn> wrote:
> > No, this patch will not change dev
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
1. set interface address label to ioctl request device name is enough
2. when address pass inet_abc_len check, prefixlen < 31 is always true
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv4/devinet.c | 8 +
(ifa->ifa_label, ifr.ifr_name, IFNAMSIZ);
> -Original Message-
> From: David Miller [mailto:da...@davemloft.net]
> Sent: Wednesday, November 16, 2016 11:31 AM
> To: YUAN Linyu
> Cc: cug...@163.com; netdev@vger.kernel.org
> Subject: Re: [PATCH] net: ioctl SIOCSIF
hi david,
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of David Miller
> Sent: Wednesday, November 16, 2016 11:01 AM
> To: cug...@163.com
> Cc: netdev@vger.kernel.org; YUAN Linyu
> Subject: Re: [PATCH] n
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
if phy device have register(s) configuration problem,
user can use this attribute to diagnose.
this feature need phy driver maintainer implement.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
drivers/net/phy/phy_d
On 六, 2017-01-14 at 17:57 -0800, Florian Fainelli wrote:
> Le 01/14/17 à 17:51, yuan linyu a écrit :
> >
> > I think mii-tool or ethtool can't do it currently.
> Maybe they cannot right now but they can certainly be patched to support
> that. sysfs is not an appropriate i
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
sizeof(struct cmsghdr) and sizeof(struct compat_cmsghdr) already aligned.
remove use CMSG_ALIGN(sizeof(struct cmsghdr)) and
CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr)) keep code consistent.
Signed-off-by: yuan linyu <linyu.y..
Thanks
> -Original Message-
> From: David Miller [mailto:da...@davemloft.net]
> Sent: Thursday, January 05, 2017 2:25 AM
> To: cug...@163.com
> Cc: netdev@vger.kernel.org; YUAN Linyu
> Subject: Re: [PATCH] scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct
> {compat
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
user input flags store to newsock which should be used.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/socket.c b/net/socket.c
i
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
1. put_cmsg{_compat}() may copy data to user when buffer free space less than
control message header alignment size.
2. scm_detach_fds{_compat}() may calc wrong fdmax if control message header
have greater alignment size.
Sign
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
1. put_cmsg{_compat}() may copy data to user when buffer free space less than
control message header alignment size.
2. scm_detach_fds{_compat}() may calc wrong fdmax if control message header
have greater alignment size.
Sign
> -Original Message-
> From: David Miller [mailto:da...@davemloft.net]
> Sent: Saturday, December 31, 2016 4:21 AM
> To: cug...@163.com
> Cc: netdev@vger.kernel.org; YUAN Linyu
> Subject: Re: [PATCH v2] scm: fix possible control message header alignment
> issue
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
sock_init() call it but not check it's return value,
so change it to void return and add an internal BUG_ON() check.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/socket.c | 6 ++
1 file changed, 2 inse
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
if CMSG_ALIGN(sizeof(struct cmsghdr)) > sizeof(struct cmsghdr),
original (cmlen - sizeof(struct cmsghdr)) may greater than
input len.
---
include/linux/socket.h | 12 ++--
net/compat.c | 28 +++-
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Subash Abhinov Kasiviswanathan
> Sent: Tuesday, April 18, 2017 7:25 AM
> To: d...@cumulusnetworks.com; da...@davemloft.net;
> netdev@vger.kernel.org; rshea...@brocade.com;
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Moritz Fischer
> Sent: Friday, July 14, 2017 5:22 AM
> To: netdev@vger.kernel.org
> Cc: devicet...@vger.kernel.org; linux-ker...@vger.kernel.org;
> da...@davemloft.net;
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
in my commit b952f4dff2751252db073c27c0f8a16a416a2ddc,
- *(u8 *)skb_put(skb_out, 1) = (u8)(accm >> 24); \
+ skb_put(skb_out, (u8)(accm >> 24)); \
it should skb_put_u8()
Fixes: b952f4dff275 ("net: manua
Sorry, it's not dead loop, I realized it but I tried to send to mail to note it
on my phone, it failed.
> -Original Message-
> From: Cong Wang [mailto:xiyou.wangc...@gmail.com]
> Sent: Thursday, June 22, 2017 6:54 AM
> To: yuan linyu
> Cc: Linux Kernel Network Deve
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
when CONFIG_IP_MULTIPLE_TABLES defined,
if id == RT_TABLE_LOCAL and !net->ipv4.fib_has_custom_rules,
fib_new_table() call itself to get RT_TABLE_MAIN table,
but if RT_TABLE_MAIN table not exist at this point,
this function will become
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 300 ---
1 file changed, 155 insertions(+), 145 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 300 ---
1 file changed, 155 insertions(+), 145 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 310 +--
1 file changed, 163 insertions(+), 147 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 310 +--
1 file changed, 163 insertions(+), 147 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
on x86_64, text size decrease 64 bytes
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 34 ++
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/net/ip
On 五, 2017-05-26 at 22:45 +0900, 吉藤英明 wrote:
> Hi,
>
> 2017-05-26 22:23 GMT+09:00 yuan linyu <cug...@163.com>:
> >
> > From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
> >
> > Signed-off-by: yuan linyu <linyu.y...@alcatel-s
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
1. fix part of checkpatch issue which I like to fix
2. __ndisc_fill_addr_option() clean
yuan linyu (2):
net: ndisc.c: fix coding style issue
net: ndisc.c: minor code improvement
net/ipv6/ndisc.c
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 109 ---
1 file changed, 55 insertions(+), 54 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
1. fix part of checkpatch issue which I like to fix
2. __ndisc_fill_addr_option() clean
v1:
correct space value
yuan linyu (2):
net: ndisc.c: fix coding style issue
net: ndisc.c: minor code improvement
net/ipv6/ndisc.c
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 109 ---
1 file changed, 55 insertions(+), 54 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
on x86_64, text size decrease 80 bytes
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 32
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/net/ip
On 六, 2017-05-27 at 02:25 +0900, 吉藤英明 wrote:
> Hi,
>
> 2017-05-26 22:55 GMT+09:00 yuan linyu <cug...@163.com>:
> >
> > On 五, 2017-05-26 at 22:45 +0900, 吉藤英明 wrote:
> > >
> > > Hi,
> > >
> > > 2017-05-26 22:23 GMT+09:00 yuan lin
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..414e929 100644
--
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
CC: Joe Perches <j...@perches.com>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/ndisc.c | 324 +--
1 file changed, 173 insertions(+), 151 deleti
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..5cf25bc 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -12,8 +12,7 @@
* 2 of the License, or (at your option) any later version.
*/
-/*
- * C
> -Original Message-
> From: David Ahern [mailto:dsah...@gmail.com]
> Sent: Tuesday, May 30, 2017 11:42 AM
> To: Joe Perches; David Miller; cug...@163.com
> Cc: netdev@vger.kernel.org; YUAN Linyu
> Subject: Re: [PATCH net-next] net: ndisc.c: reduce size of
> __n
Hi joe,
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Joe Perches
> Sent: Tuesday, May 30, 2017 11:41 AM
> To: David Miller; cug...@163.com
> Cc: netdev@vger.kernel.org; dsah...@gmail.com; YUAN Linyu
>
> > -Original Message-
> > From: David Ahern [mailto:dsah...@gmail.com]
> > Sent: Tuesday, May 30, 2017 11:42 AM
> > To: Joe Perches; David Miller; cug...@163.com
> > Cc: netdev@vger.kernel.org; YUAN Linyu
> > Subject: Re: [PATCH
Ok, I will send v2 later
> -Original Message-
> From: David Ahern [mailto:dsah...@gmail.com]
> Sent: Wednesday, May 31, 2017 8:40 AM
> To: YUAN Linyu; David Ahern; Joe Perches; David Miller; cug...@163.com
> Cc: netdev@vger.kernel.org
> Subject: Re: [PATCH net-next] ne
hi
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Chenbo Feng
> Sent: Thursday, June 01, 2017 2:07 AM
> To: netdev@vger.kernel.org; David Miller
> Cc: Lorenzo Colitti; Chenbo Feng
> Subject: [PATCH net-next 2/2] bpf: Remove
onvert many more places to skb_put_zero()
>
> From: Johannes Berg <johannes.b...@intel.com>
>
> There were many places that my previous spatch didn't find,
> as pointed out by yuan linyu in various patches.
>
> The following spatch found many more and also remov
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Johannes Berg
> Sent: Thursday, June 15, 2017 12:32 AM
> To: cug...@163.com; netdev@vger.kernel.org
> Cc: David S . Miller; YUAN Linyu
> Subject: Re:
> -Original Message-
> From: Johannes Berg [mailto:johan...@sipsolutions.net]
> Sent: Thursday, June 15, 2017 3:12 PM
> To: YUAN Linyu; netdev@vger.kernel.org
> Subject: Re: [RFC] networking: convert many more places to skb_put_zero()
>
> On Thu, 2017-06-15 at 07
Ok, understand
> -Original Message-
> From: Johannes Berg [mailto:johan...@sipsolutions.net]
> Sent: Thursday, June 15, 2017 3:45 PM
> To: YUAN Linyu; netdev@vger.kernel.org
> Subject: Re: [RFC] networking: convert many more places to skb_put_zero()
>
> On Thu, 2017
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Johannes Berg
> Sent: Thursday, June 15, 2017 5:28 PM
> To: netdev@vger.kernel.org
> Cc: Johannes Berg
> Subject: [RFC v2] networking: convert many more places to skb_put_zero()
> -Original Message-
> From: Johannes Berg [mailto:johan...@sipsolutions.net]
> Sent: Thursday, June 15, 2017 2:58 PM
> To: YUAN Linyu; netdev@vger.kernel.org
> Subject: Re: [RFC] networking: convert many more places to skb_put_zero()
>
> On Thu, 2017-06-15 at 00
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/qrtr/qrtr.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c
index c7a5d86..e96353d 100644
--- a/net
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv6/mcast.c | 3 +--
net/ipv6/ndisc.c | 13 ++---
2 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
i
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv4/ipconfig.c | 3 +--
net/ipv4/netfilter/nf_reject_ipv4.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/ipv4/ipco
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/openvswitch/datapath.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 9ddc9f8..d7
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/sctp/output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sctp/output.c b/net/sctp/output.c
index e2edf2e..c339c68 100644
--- a/net/s
On 三, 2017-06-14 at 16:42 +0200, Johannes Berg wrote:
> On Wed, 2017-06-14 at 22:30 +0800, yuan linyu wrote:
> >
> > From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
> >
> >
> > yuan linyu (11):
> > ipv6: skb_put_zero() used to optimize code
>
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/dsa/tag_trailer.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/dsa/tag_trailer.c b/net/dsa/tag_trailer.c
index 172f131..b09e562 100644
-
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/atm/signaling.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/atm/signaling.c b/net/atm/signaling.c
index adb6e3d..380d496 100644
-
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
yuan linyu (11):
ipv6: skb_put_zero() used to optimize code
ipv4: skb_put_zero() used to optimize code
ncsi: skb_put_zero() used to optimize code
dsa: skb_put_zero() used to optimize code
key: skb_put_zero() used to optimiz
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ncsi/ncsi-cmd.c | 36
1 file changed, 12 insertions(+), 24 deletions(-)
diff --git a/net/ncsi/ncsi-cmd.c b/net/ncsi/ncsi
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/batman-adv/bat_v_elp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/batman-adv/bat_v_elp.c b/net/batman-adv/bat_v_elp.c
index b580
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/key/af_key.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/net/key/af_key.c b/net/key/af_key.c
index 512dc43..c6c7cbf 100644
-
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/bridge/netfilter/nft_reject_bridge.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/bridge/netfilter/nft_reject_bridge.c
b/net/brid
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
it's not reasonable to assign delivered if packet match no RAW sock
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/ipv4/raw.c | 5 ++---
net/ipv6/raw.c | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
drivers/isdn/hysdn/hycapi.c | 8
drivers/isdn/i4l/isdn_bsdcomp.c | 2 +-
drivers/isdn/i4
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
follow Johannes Berg, semantic patch file as below,
@@
identifier p, p2;
expression len;
expression skb;
type t, t2;
@@
(
-p = __skb_put(skb, len);
+p = __skb_put_zero(skb, len);
|
-p = (t)__skb_put(skb, len);
+p = __skb_put_zero(sk
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
spatch file,
@@
expression skb, len, data;
type t;
@@
-memcpy((t *)skb_put(skb, len), data, len);
+skb_put_data(skb, data, len);
@@
identifier p;
expression skb, len, data;
type t;
@@
-p = (t *)memset(skb_put(skb, len), data, le
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
yuan linyu (3):
net: introduce __skb_put_[zero, data, u8]
net: replace more place to skb_put_[data:zero]
net: manual clean code which call skb_put_[data:zero]
drivers/crypto/chelsio/chcr_algo.c
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
it seems no need to keep tun_get() and __tun_get() at same time.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
drivers/net/tun.c | 26 +++---
1 file changed, 11 insertions(+), 15 deletions(-)
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
these two functions used by skb and other places,
move to socket.h where struct msghdr defined.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
include/linux/skbuff.h | 10 --
include/linux/socket.h | 13
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
add these two wrappers in skbuff.h which is better named
than previous and only used for skb.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
drivers/isdn/mISDN/socket.c| 2 +-
drivers/staging/irda/net/af
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
v2:
fix kbuild warning
yuan linyu (2):
net: move memcpy_to[from]_msg() from skbuff.h to socket.h
net: add skb_memcpy_to[from]_msg() to optimize skb code
drivers/isdn/mISDN/socket.c| 2 +-
drivers/staging/irda/net/af_irda.
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
these two functions used by skb and other places,
move to socket.h where struct msghdr defined.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
include/linux/skbuff.h | 10 --
include/linux/socket.h | 12 +++
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
add these two wrappers in skbuff.h which is better named
than previous and only used for skb.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
drivers/isdn/mISDN/socket.c| 2 +-
drivers/staging/irda/net/af
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
yuan linyu (2):
net: move memcpy_to[from]_msg() from skbuff.h to socket.h
net: add skb_memcpy_to[from]_msg() to optimize skb code
drivers/isdn/mISDN/socket.c| 2 +-
drivers/staging/irda/net/af_irda.c | 2 +-
include
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
from logical view, if sock_writeable(>sk) return false,
original second condition will return false too,
change it and make second condition can return true.
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
driver
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
each netlink attribute have proper process when error happen,
when exit one attribute process, it implies that no error,
so err = 0; is useless.
assign err = 0; at beginning if all attributes not set.
v1 -> v2:
fix review com
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
each netlink attribute have proper process when error happen,
when exit on attribute process, it implies that no error,
so err = 0; is useless.
assign err = 0; at beginning if all attributes not set.
Signed-off-by: yuan linyu &l
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
---
net/netlink/af_netlink.c | 54 +---
1 file changed, 23 insertions(+), 31 deletions(-)
diff --git a/net/netlink/af_net
On 五, 2017-11-17 at 15:08 +0900, David Miller wrote:
> From: yuan linyu <cug...@163.com>
> Date: Thu, 16 Nov 2017 19:59:48 +0800
>
> > From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
> >
> > each netlink attribute have proper process when error happ
From: yuan linyu <linyu.y...@alcatel-sbell.com.cn>
each netlink attribute have proper process when error happen,
when exit one attribute process, it implies that no error,
so err = 0; is useless.
assign err = 0; at beginning if all attributes not set.
v1 -> v2:
fix review com
1 - 100 of 122 matches
Mail list logo