Hi,
I have a question,
"can syzbot auto test each tree with newest changeset" ?
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Dmitry Vyukov
> Sent: Wednesday, April 11, 2018 10:58 PM
> To: syzbot
> Cc: bri...@lists.linux-fou
From: yuan linyu
it's better to update mib LISTENOVERFLOWS even if packet is flood
Signed-off-by: yuan linyu
---
net/ipv4/tcp_input.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 451ef3012636..581f5b03ae54 1
Sorry, I should not add "Here cause next BUG_ON always false."
It cause misunderstanding, I just comment on BUG_ON in else branch.
> -Original Message-
> From: Yonghong Song [mailto:y...@fb.com]
> Sent: Tuesday, March 20, 2018 1:54 PM
> To: Yuan, Linyu (NSB
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Yonghong Song
> Sent: Tuesday, March 20, 2018 1:16 PM
> To: eduma...@google.com; a...@fb.com; dan...@iogearbox.net;
> dipt...@fb.com; netdev@vger.kernel.org
> Cc: kernel-t...@fb.
https://www.spinics.net/lists/netdev/msg476083.html
I also have a macvlan device question, but get no answer.
But my original thought is in __netif_receive_skb_core() we should check packet
destination mac address,
if it match macvlan device, change packet as receive from macvlan device, not
lo
i am wrong, ignore it.
On 六, 2018-01-13 at 17:15 +0800, yuan linyu wrote:
> From: yuan linyu
>
> while loop is not needed, because list_for_each_entry() already check all fq.
>
> Signed-off-by: yuan linyu
> ---
> drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +-
From: yuan linyu
while loop is not needed, because list_for_each_entry() already check all fq.
Signed-off-by: yuan linyu
---
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
b
Hi,
I have a question about __netif_receive_skb_core(),
1. create a macvlan device on a real ethernet device and configure a mac
address to this macvlan device
2. create a AF_PACKET socket and bind to the real ethernet device in step 1
3. user application will receive packet which destination mac
From: yuan linyu
this try to allow tcpdump to capture packet once device IFF_UP
Signed-off-by: yuan linyu
---
net/packet/af_packet.c | 7 +--
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index da215e5..11b19fc 100644
--- a
From: yuan linyu
from logical view, if sock_writeable(&q->sk) return false,
original second condition will return false too,
change it and make second condition can return true.
Signed-off-by: yuan linyu
---
drivers/net/tap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
dif
From: yuan linyu
from logical view, if sock_writeable(&q->sk) return false,
original second condition will false too,
change it and make second condition can return true.
Signed-off-by: yuan linyu
---
drivers/net/tap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff
From: yuan linyu
Signed-off-by: yuan linyu
---
drivers/net/tap.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/net/tap.c b/drivers/net/tap.c
index 0a886fda..78900a0 100644
--- a/drivers/net/tap.c
+++ b/drivers/net/tap.c
@@ -275,11 +275,7 @@ static struct
From: yuan linyu
patch1: replay while() loop with % operator in tap_get_queue()
patch2: fix POLLOUT condition in tap_poll()
---
yuan linyu (2):
net: tap: replay while() loop with % operator in tap_get_queue()
net: tap: fix POLLOUT condition in tap_poll()
drivers/net/tap.c | 9 ++---
1
From: yuan linyu
Signed-off-by: yuan linyu
---
v2: fix kbuild test warning
---
net/netlink/af_netlink.c | 52
1 file changed, 22 insertions(+), 30 deletions(-)
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index b9e0ee4
From: yuan linyu
Signed-off-by: yuan linyu
---
net/netlink/af_netlink.c | 54 +---
1 file changed, 23 insertions(+), 31 deletions(-)
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index b9e0ee4..37ce0d3 100644
--- a/net/netlink
On 五, 2017-11-17 at 15:08 +0900, David Miller wrote:
> From: yuan linyu
> Date: Thu, 16 Nov 2017 19:59:48 +0800
>
> > From: yuan linyu
> >
> > each netlink attribute have proper process when error happen,
> > when exit one attribute process, it implies that no
From: yuan linyu
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 comment from David, clear err bef
From: yuan linyu
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 comment from David, clear err bef
Thanks, I will provide a new patch
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of David Miller
> Sent: Wednesday, November 15, 2017 1:20 PM
> To: Yuan, Linyu (NSB - CN/Shanghai)
> Cc: cug...@163.com; netd
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of David Miller
> Sent: Wednesday, November 15, 2017 1:08 PM
> To: cug...@163.com
> Cc: netdev@vger.kernel.org; Yuan, Linyu (NSB - CN/Shanghai)
> Subject: Re:
From: yuan linyu
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
---
net/core/rtnetlink.c | 5 +
1 file
From: yuan linyu
Signed-off-by: yuan linyu
---
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
index 68f0ac1..969f6b1 100644
--- a/drivers/net
From: yuan linyu
original i try to remove duplicate code which clean allocated per-cpu area,
thanks to David S. Miller, there are two build warning as errors.
path 1: fix old code maybe-uninitialized warning.
path 2: remove duplicate code and fix unused var warning.
yuan linyu (2):
net: dpaa
From: yuan linyu
Signed-off-by: yuan linyu
---
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
index a8d0be8..68f0ac1 100644
hange this function
description.
> -Original Message-
> From: Madalin-cristian Bucur [mailto:madalin.bu...@nxp.com]
> Sent: Monday, October 30, 2017 1:56 PM
> To: Yuan, Linyu (NSB - CN/Shanghai); yuan linyu; netdev@vger.kernel.org;
> gre...@linuxfoundation.org
> Cc: Da
Hi,
devm_alloc_percpu() will allocate per-cpu memory and memset allocated block
content to 0.
> -Original Message-
> From: Madalin-cristian Bucur [mailto:madalin.bu...@nxp.com]
> Sent: Monday, October 30, 2017 1:08 PM
> To: yuan linyu; netdev@vger.kernel.org
> Cc: David S
http://elixir.free-electrons.com/linux/latest/source/mm/percpu.c#L1018
> -Original Message-
> From: Madalin-cristian Bucur [mailto:madalin.bu...@nxp.com]
> Sent: Monday, October 30, 2017 1:15 PM
> To: Yuan, Linyu (NSB - CN/Shanghai); yuan linyu; netdev@vger.kernel.org
&
From: yuan linyu
Signed-off-by: yuan linyu
---
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
index a8d0be8..1ccc316 100644
--- a/drivers/net
From: yuan linyu
add these two wrappers in skbuff.h which is better named
than previous and only used for skb.
Signed-off-by: yuan linyu
---
drivers/isdn/mISDN/socket.c| 2 +-
drivers/staging/irda/net/af_irda.c | 2 +-
include/linux/skbuff.h | 10 ++
net
From: yuan linyu
these two functions used by skb and other places,
move to socket.h where struct msghdr defined.
Signed-off-by: yuan linyu
---
include/linux/skbuff.h | 10 --
include/linux/socket.h | 13 -
2 files changed, 12 insertions(+), 11 deletions(-)
diff --git a
From: yuan linyu
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.c | 2 +-
include/linux/skbuff.h
From: yuan linyu
these two functions used by skb and other places,
move to socket.h where struct msghdr defined.
Signed-off-by: yuan linyu
---
include/linux/skbuff.h | 10 --
include/linux/socket.h | 12 +++-
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a
From: yuan linyu
add these two wrappers in skbuff.h which is better named
than previous and only used for skb.
Signed-off-by: yuan linyu
---
drivers/isdn/mISDN/socket.c| 2 +-
drivers/staging/irda/net/af_irda.c | 2 +-
include/linux/skbuff.h | 10 ++
net
From: yuan linyu
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/linux/skbuff.h | 8
From: yuan linyu
it seems no need to keep tun_get() and __tun_get() at same time.
Signed-off-by: yuan linyu
---
drivers/net/tun.c | 26 +++---
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 3c9985f..206bc6c
Original this function have return value but not used, and check allocate
result internal,
When I change this function to void return, I add this BUG_ON.
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Tonghao Zhang
> Sent: T
> -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; mark.rutl
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
From: yuan linyu
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 deadloop.
the solution is m
From: yuan linyu
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: manual clean code which call skb_put_[data:zero]
From: yuan linyu
it's not reasonable to assign delivered if packet match no RAW sock
Signed-off-by: yuan linyu
---
net/ipv4/raw.c | 5 ++---
net/ipv6/raw.c | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index bdffad8..fa39894 1
From: yuan linyu
Signed-off-by: yuan linyu
---
drivers/isdn/hysdn/hycapi.c | 8
drivers/isdn/i4l/isdn_bsdcomp.c | 2 +-
drivers/isdn/i4l/isdn_ppp.c | 2 +-
drivers/net/bonding/bond_alb.c
From: yuan linyu
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, len);
+p = skb_put_zero(skb, len);
@@
expression
From: yuan linyu
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(skb, len);
)
... when != p
(
p2 = (t2)p;
-memset
From: yuan linyu
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 | 15 +--
drivers/infiniband/hw/cxgb4/cm.c
> -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()
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: 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
> -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
onvert many more places to skb_put_zero()
>
> From: Johannes Berg
>
> 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 removes the
> now unneces
> -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:
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
> >
> >
> > yuan linyu (11):
> > ipv6: skb_put_zero() used to optimize code
> > ipv4: skb_put_zero() used to
From: yuan linyu
Signed-off-by: yuan linyu
---
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/qrtr/qrtr.c
+++ b/net/qrtr/qrtr.c
@@ -285,8 +285,7 @@ static struct sk_buff
From: yuan linyu
Signed-off-by: yuan linyu
---
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
--- a/net/atm/signaling.c
+++ b/net/atm/signaling.c
@@ -150,8 +150,7 @@ void
From: yuan linyu
Signed-off-by: yuan linyu
---
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/sctp/output.c
+++ b/net/sctp/output.c
@@ -463,7 +463,7 @@ static int
From: yuan linyu
Signed-off-by: yuan linyu
---
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/bridge/netfilter/nft_reject_bridge.c
index c16dd3a..22a52d5 100644
--- a/net/bridge
From: yuan linyu
Signed-off-by: yuan linyu
---
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 b58007b..bd1064d 100644
--- a/net/batman-adv/bat_v_elp.c
+++ b/net/batman-adv
From: yuan linyu
Signed-off-by: yuan linyu
---
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
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -2934,8 +2934,7 @@ static void
From: yuan linyu
Signed-off-by: yuan linyu
---
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..d772e9a 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
From: yuan linyu
Signed-off-by: yuan linyu
---
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
--- a/net/dsa/tag_trailer.c
+++ b/net/dsa/tag_trailer.c
@@ -43,8 +43,7
From: yuan linyu
Signed-off-by: yuan linyu
---
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-cmd.c
index db7083b..010d808 100644
--- a/net/ncsi/ncsi-cmd.c
+++ b/net/ncsi/ncsi
From: yuan linyu
Signed-off-by: yuan linyu
---
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
index 07403fa..b186c67 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
From: yuan linyu
Signed-off-by: yuan linyu
---
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/ipconfig.c b/net/ipv4/ipconfig.c
index c3b12b1..a6292a6 100644
--- a/net/ipv4
From: yuan linyu
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 optimize code
openvswitch: skb_put_zero() used to
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 th
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
> > -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 ne
> -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
>
From: yuan linyu
Signed-off-by: yuan linyu
---
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
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -148,17 +148,18 @@ void
On 六, 2017-05-27 at 02:25 +0900, 吉藤英明 wrote:
> Hi,
>
> 2017-05-26 22:55 GMT+09:00 yuan linyu :
> >
> > On 五, 2017-05-26 at 22:45 +0900, 吉藤英明 wrote:
> > >
> > > Hi,
> > >
> > > 2017-05-26 22:23 GMT+09:00 yuan linyu :
> > > &g
On 五, 2017-05-26 at 22:45 +0900, 吉藤英明 wrote:
> Hi,
>
> 2017-05-26 22:23 GMT+09:00 yuan linyu :
> >
> > From: yuan linyu
> >
> > Signed-off-by: yuan linyu
> > ---
> > net/ipv6/ndisc.c | 109
> > --
From: yuan linyu
on x86_64, text size decrease 64 bytes
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 34 ++
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 292c827..8051b46 100644
--- a/net/ipv6
From: yuan linyu
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 109 ---
1 file changed, 55 insertions(+), 54 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..292c827 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6
From: yuan linyu
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 | 141
From: yuan linyu
on x86_64, text size decrease 80 bytes
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 32
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 292c827..ee9b12c 100644
--- a/net/ipv6
From: yuan linyu
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 109 ---
1 file changed, 55 insertions(+), 54 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..292c827 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6
From: yuan linyu
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 | 139 ---
1 file changed
From: yuan linyu
CC: Joe Perches
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 324 +--
1 file changed, 173 insertions(+), 151 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..5cf25bc 100644
--- a/net/ipv6
From: yuan linyu
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.
*/
-/*
- * Changes:
+/* Changes:
*
* Alexey I
From: yuan linyu
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 310 +--
1 file changed, 163 insertions(+), 147 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..df31f29 100644
--- a/net/ipv6/ndisc.c
+++ b/net
From: yuan linyu
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 310 +--
1 file changed, 163 insertions(+), 147 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..7528c4c 100644
--- a/net/ipv6/ndisc.c
+++ b/net
From: yuan linyu
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 300 ---
1 file changed, 155 insertions(+), 145 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..5a3dfaa 100644
--- a/net/ipv6/ndisc.c
+++ b/net
From: yuan linyu
Signed-off-by: yuan linyu
---
net/ipv6/ndisc.c | 300 ---
1 file changed, 155 insertions(+), 145 deletions(-)
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index d310dc4..5a3dfaa 100644
--- a/net/ipv6/ndisc.c
+++ b/net
> -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; eric.d
> -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
>
> -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
ectly.
thanks
> -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 move m
> -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 move md
> -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 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 move md
> -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
iginal Message-----
> From: Florian Fainelli [mailto:f.faine...@gmail.com]
> Sent: Monday, February 20, 2017 1:03 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 drivers into it
>
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
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
'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 worst case is new_fpl->count = SCM_MAX_
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
>
> 'max' only used at three places in scm.c,
> 1. in scm_fp_copy(), fpl->max = SCM_MAX
From: yuan linyu
'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 be replaced with SCM_MAX_FD
On 五, 2017-02-10 at 10:25 -0500, David Miller wrote:
> From: yuan linyu
> Date: Fri, 10 Feb 2017 20:11:13 +0800
>
> > From: yuan linyu
> >
> > SCM_MAX_FD can fully replace it.
> >
> > Signed-off-by: yuan linyu
>
> I don't think so:
>
&
From: yuan linyu
SCM_MAX_FD can fully replace it.
Signed-off-by: yuan linyu
---
include/net/scm.h | 3 +--
net/core/scm.c| 20 +---
2 files changed, 6 insertions(+), 17 deletions(-)
diff --git a/include/net/scm.h b/include/net/scm.h
index 59fa93c..1301227 100644
--- a
1 - 100 of 123 matches
Mail list logo