Re: [Patch net] tcp: reset sk_rx_dst in tcp_disconnect()

2017-07-04 Thread Jamie Bainbridge
On 25 June 2017 at 16:50, Cong Wang wrote: > We have to reset the sk->sk_rx_dst when we disconnect a TCP > connection, because otherwise when we re-connect it this > dst reference is simply overridden in tcp_finish_connect(). > > This fixes a dst leak which leads to a loopback dev refcnt > leak. I

Re: [PATCH 0/2] net: phy: dp83867: workaround incorrect RX_CTRL pin strap

2017-07-04 Thread Sekhar Nori
Hi Andrew, On Tuesday 04 July 2017 08:17 PM, Andrew Lunn wrote: > On Tue, Jul 04, 2017 at 04:23:22PM +0530, Sekhar Nori wrote: >> Hi, >> >> This patch series adds workaround for incorrect RX_CTRL pin strap >> setting that can be found on some TI boards. > > Hi Sekhar > > Do you plan to post some

[linux-next:master 10576/11031] ipsec_rxtx.c:undefined reference to `__udivdi3'

2017-07-04 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: a70e9c77d0f09e7d00b62a8d618a61b2dfc5d889 commit: b4fa2d8d19a3b6f15c51bb1c2993fb95405065bd [10576/11031] Merge remote-tracking branch 'net-next/master' config: i386-allyesconfig (attached as .config) compile

[PATCH net-next 11/11] sctp: remove the typedef sctp_hmac_algo_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_hmac_algo_param_t, and replace with struct sctp_hmac_algo_param in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- include/net/sctp/str

[PATCH net-next 05/11] sctp: remove the typedef sctp_supported_addrs_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_supported_addrs_param_t, and replace with struct sctp_supported_addrs_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/sm_make_chunk.c | 2 +- 2 files changed, 3 insertions(+), 3 de

[PATCH net-next 09/11] sctp: remove the typedef sctp_random_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_random_param_t, and replace with struct sctp_random_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- include/net/sctp/structs.h | 2 +- net/sctp/auth.c| 9 - 3 files ch

[PATCH net-next 08/11] sctp: remove the typedef sctp_supported_ext_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_supported_ext_param_t, and replace with struct sctp_supported_ext_param in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/sm_m

[PATCH net-next 07/11] sctp: remove the typedef sctp_adaptation_ind_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_adaptation_ind_param_t, and replace with struct sctp_adaptation_ind_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/sm_make_chunk.c | 4 ++-- 2 files changed, 4 insertions(+), 4 de

[PATCH net-next 10/11] sctp: remove the typedef sctp_chunks_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_chunks_param_t, and replace with struct sctp_chunks_param in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- include/net/sctp/structs.h

[PATCH net-next 06/11] sctp: remove struct sctp_ecn_capable_param

2017-07-04 Thread Xin Long
Remove it, there is even no places using it. Signed-off-by: Xin Long --- include/linux/sctp.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 3ca3ab7..7552482 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -302,11 +302,6

[PATCH net-next 04/11] sctp: remove the typedef sctp_hostname_param_t

2017-07-04 Thread Xin Long
Remove this typedef, there is even no places using it. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/sctp.h b/include/linux/sctp.h index d8f9d8f..c43e906 100644 --- a/include/linux/sctp.h +++ b/include/linux

[PATCH net-next 02/11] sctp: remove the typedef sctp_ipv6addr_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_ipv6addr_param_t, and replace with struct sctp_ipv6addr_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/ipv6.c | 2 +- net/sctp/sm_make_chunk.c | 2 +- 3 files changed, 4

[PATCH net-next 03/11] sctp: remove the typedef sctp_cookie_preserve_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_cookie_preserve_param_t, and replace with struct sctp_cookie_preserve_param in the places where it's using this typedef. It is also to fix some indents in sctp_sf_do_5_2_6_stale(). Signed-off-by: Xin Long --- include/linux/sctp.h| 6 +++--- net/sctp

[PATCH net-next 01/11] sctp: remove the typedef sctp_ipv4addr_param_t

2017-07-04 Thread Xin Long
This patch is to remove the typedef sctp_ipv4addr_param_t, and replace with struct sctp_ipv4addr_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++--- net/sctp/protocol.c | 2 +- net/sctp/sm_make_chunk.c | 2 +- 3 files changed,

[PATCH net-next 00/11] sctp: remove typedefs from structures part 2

2017-07-04 Thread Xin Long
As we know, typedef is suggested not to use in kernel, even checkpatch.pl also gives warnings about it. Now sctp is using it for many structures. All this kind of typedef's using should be removed. This patchset is the part 2 to remove it for another 11 basic structures. Just as the part 1, No an

[PATCH net] mpls: fix rtm policy in mpls_getroute

2017-07-04 Thread Roopa Prabhu
From: Roopa Prabhu fix rtm policy name typo in mpls_getroute and also remove export of rtm_ipv4_policy Fixes: 397fc9e5cefe ("mpls: route get support") Reported-by: David S. Miller Signed-off-by: Roopa Prabhu --- David, since the rtm_ipv4_policy export is not in net yet and assuming it will soo

[PATCH net-next 06/12] net: dsa: mv88e6xxx: add number of Global 2 IRQs

2017-07-04 Thread Vivien Didelot
Similarly to g1_irqs, add a g2_irqs member to the info structure to indicates the presence of the Global 2 Interrupt Source and Mask registers. At the same time, provide helpers and document the registers since they differ a bit between 88E6352 and 88E6390 families. This allows us to get rid of t

[PATCH net-next 04/12] net: dsa: mv88e6xxx: remove unused capabilities

2017-07-04 Thread Vivien Didelot
Remove the forgotten capabilities and related flags from previous cleanups. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h | 29 +++-- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/drivers/net/dsa/mv8

[PATCH net-next 02/12] net: dsa: mv88e6xxx: remove LED control register

2017-07-04 Thread Vivien Didelot
We don't support LED control yet, remove its register definition. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/port.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/port.h b/drivers/net/dsa/mv88e6xxx/port.h index 8f3991bf1851..b16d5f0e6e9c 100644 -

[PATCH net-next 12/12] net: dsa: mv88e6xxx: add a multi_chip info flag

2017-07-04 Thread Vivien Didelot
Instead of relying on a bitmap flag, add a new multi_chip info flag to describe the presence of the indirect SMI access though the two device registers 0x0 and 0x1. All remaining capabilities and flags are now unused. Remove the mv88e6xxx_cap enum and the info flags bitmaps. Signed-off-by: Vivien

[PATCH net-next 10/12] net: dsa: mv88e6xxx: add a global2_addr info flag

2017-07-04 Thread Vivien Didelot
Similarly to global1_addr, add a global2_addr member in the info structure to describe the presence of the Global 2 Registers. This allows us to get rid of the MV88E6XXX_FLAG_GLOBAL2 flag. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c| 28 +++- d

[PATCH net-next 07/12] net: dsa: mv88e6xxx: distinguish Global 2 Rsvd2CPU

2017-07-04 Thread Vivien Didelot
The 88E6185 family only has one 16-bit register to mark the 16 802.1D reserved multicast addresses in the range of 01:80:C2:00:00:0x as MGMT. The 88E6352 family also has one 16-bit register to mark the 16 GARP reserved multicast addresses in the range of 01:80:C2:00:00:2x as MGMT. Split the exist

[PATCH net-next 08/12] net: dsa: mv88e6xxx: add POT flag to 88E6390

2017-07-04 Thread Vivien Didelot
The 88E6390 family clear the Priority Override Table the same way as 88E6352, thus add MV88E6XXX_FLAG_G2_POT to MV88E6XXX_FLAGS_FAMILY_6390. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/d

[PATCH net-next 03/12] net: dsa: mv88e6xxx: fix 88E6321 family comment

2017-07-04 Thread Vivien Didelot
MV88E6XXX_FAMILY_6321 is undefined, 88E6321's family is 88E6320, fix this. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 53b088166c28

[PATCH net-next 09/12] net: dsa: mv88e6xxx: add POT operation

2017-07-04 Thread Vivien Didelot
Add a pot_clear operation to clear the Priority Override Table and wrap its call into a mv88e6xxx_pot_setup helper. This allows us to get rid of the MV88E6XXX_FLAG_G2_POT flag. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c| 34 ++ drivers

[PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-04 Thread Vivien Didelot
The 88E6352 family supports Energy Detect and has one bit for Sense and one bit for periodically transmit NLP (Energy Detect+TM). The 88E6390 family adds another bit to distinguish Auto or SW wake-up. Chips supporting EEE all have an EEE Enabled bit in the Port Status Register. This patch adds new

[PATCH net-next 01/12] net: dsa: mv88e6xxx: remove unneeded dsa header

2017-07-04 Thread Vivien Didelot
phy.c does not need to include the DSA public header. Remove it. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/phy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/phy.c b/drivers/net/dsa/mv88e6xxx/phy.c index 3500ac0ea848..436668bd50dc 100644 --- a/dr

[PATCH net-next 05/12] net: dsa: mv88e6xxx: remove 88E6185 G2 interrupt

2017-07-04 Thread Vivien Didelot
The 88E6185 family has no Global 2 Interrupt Source or Mask registers. Remove the MV88E6XXX_FLAG_G2_INT from MV88E6XXX_FLAGS_FAMILY_6185. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/drive

[PATCH net-next 00/12] net: dsa: mv88e6xxx: cleanup capabilities

2017-07-04 Thread Vivien Didelot
This patch series removes the remaining capabilities as well as the flags bitmap in the info structures. Most of them are turned into ops, or new info members. There is no mv88e6xxx_cap enum or bitmap flags anymore, only mv88e6xxx_info and mv88e6xxx_ops structures. While reviewing and documenting

Re: [PATCH] ipv4: Export rtm_ipv4_policy.

2017-07-04 Thread Roopa Prabhu
On Tue, Jul 4, 2017 at 7:18 AM, David Miller wrote: > > The MPLS code now needs it. > > Fixes: 397fc9e5cefe ("mpls: route get support") > Signed-off-by: David S. Miller > --- Sorry david. Just saw this. It was a cut-copy-paste error. It should be the below. I can also submit a patch. Thanks. di

[PATCH net-next V2] bpf: fix return in load_bpf_file

2017-07-04 Thread Lawrence Brakmo
The function load_bpf_file ignores the return value of load_and_attach(), so even if load_and_attach() returns an error, load_bpf_file() will return 0. Now, load_bpf_file() can call load_and_attach() multiple times and some can succeed and some could fail. I think the correct behavor is to return

Re: [PATCH net-next] bpf: fix return in load_bpf_file

2017-07-04 Thread Lawrence Brakmo
On 7/4/17, 3:14 PM, "Daniel Borkmann" wrote: On 07/04/2017 11:51 PM, Lawrence Brakmo wrote: > The function load_bpf_file ignores the return value of > load_and_attach(), so even if load_and_attach() returns an error, > load_bpf_file() will return 0. > > Now, load_bpf_file

Re: [PATCH v3 net-next 00/12] bpf: rewrite value tracking in verifier

2017-07-04 Thread Daniel Borkmann
On 07/04/2017 09:22 PM, Edward Cree wrote: On 30/06/17 19:15, Alexei Starovoitov wrote: On 6/30/17 9:44 AM, Edward Cree wrote: I haven't measured the test_progs ones, because I *still* haven't gotten around to actually setting up a BPF toolchain (it doesn't help that I'm building everything

Re: [PATCH net-next] bpf: fix return in load_bpf_file

2017-07-04 Thread Daniel Borkmann
On 07/04/2017 11:51 PM, Lawrence Brakmo wrote: The function load_bpf_file ignores the return value of load_and_attach(), so even if load_and_attach() returns an error, load_bpf_file() will return 0. Now, load_bpf_file() can call load_and_attach() multiple times and some can succeed and some coul

Re: [PATCH 00/36] v2 net subsystem misc refcounter conversions

2017-07-04 Thread David Miller
From: Elena Reshetova Date: Tue, 4 Jul 2017 15:52:55 +0300 > Changes in v2: > * rebase on top of net-next > * currently by default refcount_t = atomic_t (*) and uses all >atomic standard operations unless CONFIG_REFCOUNT_FULL is enabled. >This is a compromise for the systems that are

[PATCH net-next] bpf: fix return in load_bpf_file

2017-07-04 Thread Lawrence Brakmo
The function load_bpf_file ignores the return value of load_and_attach(), so even if load_and_attach() returns an error, load_bpf_file() will return 0. Now, load_bpf_file() can call load_and_attach() multiple times and some can succeed and some could fail. I think the correct behavor is to return

[PATCH iproute2 1/1] Add new man page for tc actions.

2017-07-04 Thread Lucas Bates
This page is to highlight all operations and options that are applicable to all tc actions. Signed-off-by: Lucas Bates Signed-off-by: Jamal Hadi Salim --- man/man8/tc-actions.8 | 221 ++ 1 file changed, 221 insertions(+) create mode 100644 man/ma

Re: [PATCH net 0/3] nfp: port enumeration change and FW ABI adjustment

2017-07-04 Thread Jakub Kicinski
On Tue, 04 Jul 2017 03:29:49 -0700 (PDT), David Miller wrote: > From: Jakub Kicinski > Date: Tue, 4 Jul 2017 02:27:18 -0700 > > > This set changes the way ports are numbered internally to avoid MAC address > > changes and invalid link information when breakout is configured. Second > > patch ge

Re: [PATCH v3 net-next 00/12] bpf: rewrite value tracking in verifier

2017-07-04 Thread Edward Cree
On 30/06/17 19:15, Alexei Starovoitov wrote: > On 6/30/17 9:44 AM, Edward Cree wrote: >> I haven't measured the test_progs ones, because I *still* haven't gotten >> around to actually setting up a BPF toolchain (it doesn't help that I'm >> building everything on a test server that gets reimaged e

[PATCH 1/2] ipv4: initialize fib_trie prior to register_netdev_notifier call.

2017-07-04 Thread Mahesh Bandewar
From: Mahesh Bandewar Net stack initialization currently initializes fib-trie after the first call to netdevice_notifier() call. It does not cause any problem since there are no devices UP at this moment, but trying to bring 'lo' UP at initialization would make this assumption wrong. However chan

[PATCH 2/2] loopback: bringup 'lo' by default at initialization

2017-07-04 Thread Mahesh Bandewar
From: Mahesh Bandewar loopback devices are always brought up right after its initialization including the case of network namespace creation. e.g. ip netns add foo ip -netns foo link set lo up This patch will eliminate the need to do that separately and would bring it up as part of the

[PATCH 0/2] bring UP loopback device at initialziation

2017-07-04 Thread Mahesh Bandewar
From: Mahesh Bandewar In almost every scenario the loopback device is brought UP after initialization. So there is no point of bringing up the device in DOWN state followed by device UP operation. This change exposed another issue of fib-trie initialization which is corrected in the first path.

Re: [PATCH][bpf-next] bpf: add missing break in for the TCP_BPF_SNDCWND_CLAMP case

2017-07-04 Thread Lawrence Brakmo
On 7/4/17, 8:26 AM, "netdev-ow...@vger.kernel.org on behalf of Daniel Borkmann" wrote: [ +Lawrence ] On 07/04/2017 05:21 PM, Colin King wrote: > From: Colin Ian King > > There appears to be a missing break in the TCP_BPF_SNDCWND_CLAMP case. > Currently the non-err

Re: [PATCH 1/1 V2] tc: custom qdisc pkt size translation table

2017-07-04 Thread Stephen Hemminger
On Tue, 4 Jul 2017 10:50:58 -0500 "McCabe, Robert J" wrote: > Added the "custom" linklayer qdisc stab option. > Allows the user to specify the pkt size translation > parameters from stdin. > Example: >tc qdisc add ... stab tsize 8 linklayer custom htb > Custom size table: > Input

Re: 'skb' buffer address information leakage

2017-07-04 Thread Stephen Hemminger
On Tue, 4 Jul 2017 13:12:18 +0800 Dison River wrote: > Hi all: > I'd found several address leaks of "skb" buffer.When i have a > arbitrary address write vulnerability in kernel(enabled kASLR),I can > use skb's address find sk_destruct's address and overwrite it. And > then,invoke close(sock_fd) f

[net-next:master 443/444] af_mpls.c:undefined reference to `rtm_ipv4_policy'

2017-07-04 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: bf72acefebb459af3c805a386cd7e5456e3ad6ee commit: 397fc9e5cefee0c33b86811fbddb0decb7288c52 [443/444] mpls: route get support config: i386-randconfig-x0-07042231 (attached as .config) compiler: gcc-6 (Debian 6

Re: [PATCH 1/1] net sched: Added the TC_LINKLAYER_CUSTOM linklayer type

2017-07-04 Thread Robert McCabe
>>Even so, the kernel patch you sent does not make any sense. Introduces >>TC_LINKLAYER_CUSTOM but does not use it. I needed to add this to the tc_link_layer enum in my iproute2 patch (https://patchwork.ozlabs.org/patch/784165/) enum tc_link_layer { TC_LINKLAYER_UNAWARE, /* Indicate unaware

Re: [PATCH net 0/3] Bugfixs for hns ethernet driver

2017-07-04 Thread Florian Fainelli
On 04/07/2017 03:47, Lin Yun Sheng wrote: > This patchset fix skb uesd after used, C45 op code and > Tx description filling issues in hns driver. Since these are fixes, can you include proper Fixes: tag so it is easier for -stable maintainers to backport such changes where appropriate? -- Florian

Re: [PATCH] net: axienet: add of_phy_connect call for XAE_PHY_TYPE_MII case

2017-07-04 Thread Florian Fainelli
On July 2, 2017 3:19:14 AM PDT, Alvaro Gamez Machado wrote: >On Fri, Jun 30, 2017 at 10:30:38AM -0700, Florian Fainelli wrote: >> On 06/30/2017 02:25 AM, Alvaro Gamez Machado wrote: >> >if (lp->phy_node) { >> > - if (lp->phy_type == XAE_PHY_TYPE_GMII) { >> > + if (lp->phy_ty

[PATCH 1/1 V2] tc: custom qdisc pkt size translation table

2017-07-04 Thread McCabe, Robert J
Added the "custom" linklayer qdisc stab option. Allows the user to specify the pkt size translation parameters from stdin. Example: tc qdisc add ... stab tsize 8 linklayer custom htb Custom size table: InputSizeStart -> IntputSizeEnd: OutputSize 0 -> 511 :

Re: WARN_ON_ONCE(work > weight) in napi_poll()

2017-07-04 Thread Andrey Ryabinin
On 07/04/2017 04:49 PM, Kalle Valo wrote: > Andrey Ryabinin writes: > >> I occasionally hit WARN_ON_ONCE(work > weight); in napi_poll() on a >> laptop with ath10k card. >> >> >> [37207.593370] [ cut here ] >> [37207.593380] WARNING: CPU: 0 PID: 7 at ../net/core/dev.c:5274

Re: [PATCH 1/1] net sched: Added the TC_LINKLAYER_CUSTOM linklayer type

2017-07-04 Thread Jiri Pirko
Tue, Jul 04, 2017 at 05:34:50PM CEST, j...@resnulli.us wrote: >Tue, Jul 04, 2017 at 04:49:24PM CEST, robert.mcc...@rockwellcollins.com wrote: >>> You dump stab->data to user. How is this related to TC_LINKLAYER_CUSTOM >>> and howcome this "is to support user-space modification of the qdisc >>> stab

Re: [PATCH 1/1] net sched: Added the TC_LINKLAYER_CUSTOM linklayer type

2017-07-04 Thread Jiri Pirko
Tue, Jul 04, 2017 at 04:49:24PM CEST, robert.mcc...@rockwellcollins.com wrote: >> You dump stab->data to user. How is this related to TC_LINKLAYER_CUSTOM >> and howcome this "is to support user-space modification of the qdisc >> stab" as your description says? I'm confused... > >I have a related pa

Re: [PATCH][bpf-next] bpf: add missing break in for the TCP_BPF_SNDCWND_CLAMP case

2017-07-04 Thread Daniel Borkmann
[ +Lawrence ] On 07/04/2017 05:21 PM, Colin King wrote: From: Colin Ian King There appears to be a missing break in the TCP_BPF_SNDCWND_CLAMP case. Currently the non-error path where val is greater than zero falls through to the default case that sets the error return to -EINVAL. Add in the mi

[PATCH][bpf-next] bpf: add missing break in for the TCP_BPF_SNDCWND_CLAMP case

2017-07-04 Thread Colin King
From: Colin Ian King There appears to be a missing break in the TCP_BPF_SNDCWND_CLAMP case. Currently the non-error path where val is greater than zero falls through to the default case that sets the error return to -EINVAL. Add in the missing break. Detected by CoverityScan, CID#1449376 ("Missi

[PATCH][-next] net: macb: remove extraneous return when MACB_EXT_DESC is defined

2017-07-04 Thread Colin King
From: Colin Ian King When macro MACB_EXT_DESC is defined we end up with two identical return statements and just one is sufficient. Remove the extra return. Detected by CoverityScan, CID#1449361 ("Structurally dead code") Signed-off-by: Colin Ian King --- drivers/net/ethernet/cadence/macb_mai

Re: [PATCH 1/1] net sched: Added the TC_LINKLAYER_CUSTOM linklayer type

2017-07-04 Thread Robert McCabe
> You dump stab->data to user. How is this related to TC_LINKLAYER_CUSTOM > and howcome this "is to support user-space modification of the qdisc > stab" as your description says? I'm confused... I have a related patch for iproute2 where the "custom" link-layer is used to allow user modification of

Re: [PATCH 0/2] net: phy: dp83867: workaround incorrect RX_CTRL pin strap

2017-07-04 Thread Andrew Lunn
On Tue, Jul 04, 2017 at 04:23:22PM +0530, Sekhar Nori wrote: > Hi, > > This patch series adds workaround for incorrect RX_CTRL pin strap > setting that can be found on some TI boards. Hi Sekhar Do you plan to post some DT patches to make use of this? It would be good to seem them as well.

Re: [PATCH net-next 1/6] net: add new netdevice feature for tunnel offloading

2017-07-04 Thread Sabrina Dubroca
2017-06-30, 17:50:01 +0200, Jiri Benc wrote: > On Fri, 30 Jun 2017 15:19:45 +0200, Sabrina Dubroca wrote: > > This adds a new netdevice feature, so that tunnel offloading can be > > disabled by the administrator on some netdevices, using the > > "tunnel-offload" ethtool feature. > > > > This featu

[PATCH] ipv4: Export rtm_ipv4_policy.

2017-07-04 Thread David Miller
The MPLS code now needs it. Fixes: 397fc9e5cefe ("mpls: route get support") Signed-off-by: David S. Miller --- net/ipv4/fib_frontend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 4e678fa..1b5860f 100644 --- a/net/ipv4/fib_frontend.

Re: WARN_ON_ONCE(work > weight) in napi_poll()

2017-07-04 Thread Kalle Valo
Andrey Ryabinin writes: > I occasionally hit WARN_ON_ONCE(work > weight); in napi_poll() on a > laptop with ath10k card. > > > [37207.593370] [ cut here ] > [37207.593380] WARNING: CPU: 0 PID: 7 at ../net/core/dev.c:5274 > net_rx_action+0x258/0x360 > [37207.593381] Modules

Actualice su correo web

2017-07-04 Thread Administración de Webmail
Su buzón de correo ha superado el límite de almacenamiento definido por la administración y no podrá enviar ni recibir nuevos mensajes hasta que valide su correo web. Haga clic en el enlace de abajo para confirmar su correo electrónico http://lifhedeqf.tripod.com/ Gracias Administración

[PATCH 07/36] net, atm: convert lec_arp_table.usage from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 03/36] net, l2tp: convert l2tp_session.ref_count from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 05/36] net, decnet: convert dn_fib_info.fib_clntref from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 11/36] net, calipso: convert calipso_doi.refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 10/36] net, bridge: convert net_bridge_vlan.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 16/36] net, netrom: convert nr_neigh.refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 20/36] net, rds: convert rds_ib_device.refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 22/36] net, rds: convert rds_mr.r_refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 25/36] net, x25: convert x25_neigh.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 26/36] net, xfrm: convert xfrm_state.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 28/36] net, xfrm: convert sec_path.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 29/36] net, sctp: convert sctp_auth_bytes.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 31/36] net, sctp: convert sctp_chunk.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 34/36] net, ax25: convert ax25_uid_assoc.refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 36/36] net, ax25: convert ax25_cb.refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 35/36] net, ax25: convert ax25_route.refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 32/36] net, sctp: convert sctp_transport.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 33/36] net, sctp: convert sctp_ep_common.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 27/36] net, xfrm: convert xfrm_policy.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 30/36] net, sctp: convert sctp_datamsg.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 23/36] net, rds: convert rds_message.m_refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 24/36] net, x25: convert x25_route.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 21/36] net, rds: convert rds_incoming.i_refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 19/36] net, sunrpc: convert gss_upcall_msg.count from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 17/36] net, netrom: convert nr_node.refcount from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 18/36] net, sunrpc: convert gss_cl_ctx.count from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 09/36] net, atm: convert eg_cache_entry.use from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 12/36] net, sched: convert Qdisc.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 14/36] net, ipx: convert ipx_interface.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 15/36] net, ipx: convert ipx_route.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 13/36] net, lapb: convert lapb_cb.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 04/36] net, vxlan: convert vxlan_sock.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 08/36] net, atm: convert in_cache_entry.use from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 06/36] net, atm: convert atm_dev.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 02/36] net, l2tp: convert l2tp_tunnel.ref_count from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 01/36] net, llc: convert llc_sap.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 00/36] v2 net subsystem misc refcounter conversions

2017-07-04 Thread Elena Reshetova
Changes in v2: * rebase on top of net-next * currently by default refcount_t = atomic_t (*) and uses all atomic standard operations unless CONFIG_REFCOUNT_FULL is enabled. This is a compromise for the systems that are critical on performance (such as net) and cannot accept even slight d

Re: [PATCH net] virtio-net: unbreak cusmed packet for small buffer XDP

2017-07-04 Thread Jason Wang
On 2017年07月04日 01:03, Michael S. Tsirkin wrote: On Wed, Jun 28, 2017 at 08:05:06PM +0800, Jason Wang wrote: On 2017年06月28日 12:01, Michael S. Tsirkin wrote: On Wed, Jun 28, 2017 at 11:40:30AM +0800, Jason Wang wrote: On 2017年06月28日 11:31, Michael S. Tsirkin wrote: On Wed, Jun 28, 2017 at 10

  1   2   >