Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.
Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
On Mon, Jun 29, 2020 at 04:41:16PM +0100, Robin Murphy wrote:
> On 2020-06-28 18:16, Björn Töpel wrote:
>>
>> On 2020-06-27 09:04, Christoph Hellwig wrote:
>>> On Sat, Jun 27, 2020 at 01:00:19AM +0200, Daniel Borkmann wrote:
Given there is roughly a ~5 weeks window at max where this removal co
On Fri, Jun 26, 2020 at 3:46 AM Maxim Mikityanskiy wrote:
>
> HTB doesn't scale well because of contention on a single lock, and it
> also consumes CPU. Mellanox hardware supports hierarchical rate limiting
> that can be leveraged by offloading the functionality of HTB.
True, essentially because
On 6/28/2020 12:17 AM, Saeed Mahameed wrote:
From: Boris Pismenny
This reverts commit b3ae2459f89773adcbf16fef4b68deaaa3be1929.
Revert the force resync API.
Not in use. To be replaced by a better async resync API downstream.
Signed-off-by: Boris Pismenny
Signed-off-by: Tariq Toukan
Review
On 08 July 2020 at 08:03 am, Madalin Bucur (OSS) wrote:
From: Christian Zigotzky
Sent: Tuesday, July 7, 2020 9:26 PM
To: Madalin Bucur (OSS)
Cc: mad skateman ; Camelia Alexandra Groza
;
linuxppc-...@ozlabs.org; netdev@vger.kernel.org; R.T.Dickinson
;
Darren Stevens
Subject: Re: FSL P5020/P50
On Fri, Jul 3, 2020 at 7:45 AM Alan Maguire wrote:
>
> Simple selftest that verifies bpf_trace_printk() returns a sensible
> value and tracing messages appear.
>
> Signed-off-by: Alan Maguire
> ---
> .../selftests/bpf/prog_tests/trace_printk.c| 71
> ++
> tools/testi
On Fri, Jul 3, 2020 at 7:47 AM Alan Maguire wrote:
>
> The bpf helper bpf_trace_printk() uses trace_printk() under the hood.
> This leads to an alarming warning message originating from trace
> buffer allocation which occurs the first time a program using
> bpf_trace_printk() is loaded.
>
> We can
On Tue, Jul 7, 2020 at 6:46 PM Martin KaFai Lau wrote:
>
> bpf_sk_reuseport_detach is currently called when sk->sk_user_data
> is not NULL. It is incorrect because sk->sk_user_data may not be
> managed by the bpf's reuseport_array. It has been report in [1] that,
> the bpf_sk_reuseport_detach()
syzkaller found its way into setsockopt with TCP_CONGESTION "cdg".
tcp_cdg_init() does a kcalloc to store the gradients. As sk_clone_lock
just copies all the memory, the allocated pointer will be copied as
well, if the app called setsockopt(..., TCP_CONGESTION) on the listener.
If now the socket wi
On 7/7/20 8:48 PM, Huazhong Tan wrote:
> Since UDP GSO feature is depended on checksum offload, so disable
> UDP GSO feature when CSUM is disabled, then from user-space also
> can see UDP GSO feature is disabled.
>
> Signed-off-by: Huazhong Tan
> ---
> net/core/dev.c | 6 ++
> 1 file chan
From: Sergey Organov Sent: Tuesday, July 7, 2020 10:43 PM
> Andy Duan writes:
>
> > From: Sergey Organov Sent: Monday, July 6, 2020
> 10:26 PM
> >> Code of the form "if(x) x = 0" replaced with "x = 0".
> >>
> >> Code of the form "if(x == a) x = a" removed.
> >>
> >> Signed-off-by: Sergey Organo
On Wed, Jul 08, 2020 at 03:42:52AM +, Xu Wang wrote:
> Replace sg++ with sg = sg_next(sg).
>
> Signed-off-by: Xu Wang
> ---
> net/rds/send.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/rds/send.c b/net/rds/send.c
> index 68e2bdb08fd0..57d03a6753de 100644
> ---
From: Robin Murphy On 2020-07-07 04:44, Andy Duan wrote:
> > Hi mm experts,
> >
> > From: Kegl Rohit Sent: Monday, July 6, 2020
> > 10:18 PM
> >> So you would also say a single dma_sync_single_for_cpu is enough.
> >> You are right it would be great if some mm expert could have a look
> >> at it.
On 7/7/20 8:48 PM, Huazhong Tan wrote:
> Add NETIF_F_SOFTWARE_GSO to the the list of GSO features with
s/NETIF_F_SOFTWARE_GSO/NETIF_F_GSO_UDP_L4/
> a software fallback. This allows UDP GSO to be used even if
> the hardware does not support it, and for virtual device such
> as VxLAN device, t
Hi Gustavo,
> Replace the existing /* fall through */ comments and its variants with
> the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
> fall-through markings when it is the case.
>
> [1]
> https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough
We have a number of error conditions that can lead to the driver not
probing successfully, move the print when we are sure
dsa_register_switch() has suceeded. This avoids repeated prints in case
of probe deferral for instance.
Signed-off-by: Florian Fainelli
---
drivers/net/dsa/dsa_loop.c | 11 +
This driver is not working because of problems of its receiving code.
This patch fixes it to make it work.
When the driver receives an LAPB frame, it should first pass the frame
to the LAPB module to process. After processing, the LAPB module passes
the data (the packet) back to the driver, the dr
NVM config file address will be modified when the MBI image is upgraded.
Driver would return stale config values if user reads the nvm-config
(via ethtool -d) in this state. The fix is to re-populate nvm attribute
info while reading the nvm config values/partition.
Changes from previous version:
-
Since UDP GSO feature is depended on checksum offload, so disable
UDP GSO feature when CSUM is disabled, then from user-space also
can see UDP GSO feature is disabled.
Signed-off-by: Huazhong Tan
---
net/core/dev.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/net/core/dev.c b/net/co
Add NETIF_F_SOFTWARE_GSO to the the list of GSO features with
a software fallback. This allows UDP GSO to be used even if
the hardware does not support it, and for virtual device such
as VxLAN device, this UDP segmentation will be postponed to
physical device.
Signed-off-by: Huazhong Tan
---
in
There are two updates related to UDP GSO.
#1 adds NETIF_F_GSO_UDP_L4 to NETIF_F_SOFTWARE_GSO, then the virtual
device can postpone its UDP GSO to physical device, as extention to
commit 83aa025f535f ("udp: add gso support to virtual devices").
#2 disable UDP GSO feature when CSUM is disabled. Curre
Replace sg++ with sg = sg_next(sg).
Signed-off-by: Xu Wang
---
net/rds/send.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/rds/send.c b/net/rds/send.c
index 68e2bdb08fd0..57d03a6753de 100644
--- a/net/rds/send.c
+++ b/net/rds/send.c
@@ -387,7 +387,7 @@ int rds_send_xmi
>-Original Message-
>From: Edward Cree
>Sent: 2020年7月8日 2:35
>To: lkp ; linux-net-driv...@solarflare.com;
>da...@davemloft.net
>Cc: kbuild-...@lists.01.org; netdev@vger.kernel.org
>Subject: [kbuild-all] Re: [PATCH net-next 03/15] sfc_ef100: skeleton EF100 PF
>driver
>
>On 04/07/2020 05:
On Wed, Jul 8, 2020 at 4:00 AM Andrii Nakryiko
wrote:
>
> On Tue, Jul 7, 2020 at 11:49 AM Daniel T. Lee wrote:
> >
> > samples/bpf no longer use bpf_map_def_legacy and instead use the
> > libbpf's bpf_map_def or new BTF-defined MAP format. This commit removes
> > unused bpf_map_def_legacy struct
Add setter for BTF FD to allow application more fine-grained control in more
advanced scenarios. Storing BTF FD inside `struct btf` provides little benefit
and probably would be better done differently (e.g., btf__load() could just
return FD on success), but we are stuck with this due to backwards
This patch set improves libbpf's support of old kernels, missing features like
BTF support, global variables support, etc.
Most critical one is a silent drop of CO-RE relocations if libbpf fails to
load BTF (despite sanitization efforts). This is frequently the case for
kernels that have no BTF su
Change sanitization process to preserve original BTF, which might be used by
libbpf itself for Kconfig externs, CO-RE relocs, etc, even if kernel is old
and doesn't support BTF. To achieve that, if libbpf detects the need for BTF
sanitization, it would clone original BTF, sanitize it in-place, atte
perf_buffer__new() is relying on BPF_OBJ_GET_INFO_BY_FD availability for few
sanity checks. OBJ_GET_INFO for maps is actually much more recent feature than
perf_buffer support itself, so this causes unnecessary problems on old kernels
before BPF_OBJ_GET_INFO_BY_FD was added.
This patch makes those
With valid ELF and valid BTF, there is no reason (apart from bugs) why BTF
finalization should fail. So make it strict and return error if it fails. This
makes CO-RE relocation more reliable, as they are not going to be just
silently skipped, if BTF finalization failed.
Signed-off-by: Andrii Nakry
Switch perf_buffer test to use skeleton to avoid use of bpf_prog_load() and
make test a bit more succinct. Also switch BPF program to use tracepoint
instead of kprobe, as that allows to support older kernels, which had
tracepoint support before kprobe support in the form that libbpf expects
(i.e.,
Add a test that relies on CO-RE, but doesn't expect any of the recent
features, not available on old kernels. This is useful for Travis CI tests
running against very old kernels (e.g., libbpf has 4.9 kernel testing now), to
verify that CO-RE still works, even if kernel itself doesn't support BTF ye
bpf_sk_reuseport_detach is currently called when sk->sk_user_data
is not NULL. It is incorrect because sk->sk_user_data may not be
managed by the bpf's reuseport_array. It has been report in [1] that,
the bpf_sk_reuseport_detach() which is called from udp_lib_unhash() has
corrupted the sk_user_da
This set fixes two issues on sk_user_data when a sk is added to
a reuseport_array.
The first patch is to avoid the sk_user_data being copied
to a cloned sk. The second patch avoids doing bpf_sk_reuseport_detach()
on sk_user_data that is not managed by reuseport_array.
Since the changes are mostl
It makes little sense for copying sk_user_data of reuseport_array during
sk_clone_lock(). This patch reuses the SK_USER_DATA_NOCOPY bit introduced in
commit f1ff5ce2cd5e ("net, sk_msg: Clear sk_user_data pointer on clone if
tagged").
It is used to mark the sk_user_data is not supposed to be copie
Hello,
syzbot found the following crash on:
HEAD commit:7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=10261e7b10
kernel config: https://syzkaller.appspot.com/x/.config?x=7be693511b29b338
das
On Mon, Jul 6, 2020 at 10:50 PM Richard Guy Briggs wrote:
> On 2020-07-05 11:09, Paul Moore wrote:
> > On Sat, Jun 27, 2020 at 9:21 AM Richard Guy Briggs wrote:
> > >
> > > The audit-related parameters in struct task_struct should ideally be
> > > collected together and accessed through a standar
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url:
https://github.com/0day-ci/linux/commits/izabela-bakollari-gmail-com/dropwatch-Support-monitoring-of-dropped-frames/20200708-011806
base: https://git.kernel.org/pub/scm/linux/kernel/git/d
On 7/7/20 9:01 PM, Andrii Nakryiko wrote:
On Tue, Jul 7, 2020 at 11:49 AM Daniel T. Lee wrote:
There have been many changes in how the current bpf program defines
map. The development of libbbpf has led to the new method called
BTF-defined map, which is a new way of defining BPF maps, and thus
On 7/8/20 1:43 AM, Stanislav Fomichev wrote:
On Tue, Jul 7, 2020 at 2:42 PM Daniel Borkmann wrote:
On 7/7/20 1:42 AM, Andrii Nakryiko wrote:
On Mon, Jul 6, 2020 at 4:02 PM Stanislav Fomichev wrote:
Implement BPF_CGROUP_INET_SOCK_RELEASE hook that triggers
on inet socket release. It trigger
This patch adds support for parsing the Receive Control (RCTL) register
fields.
Signed-off-by: Andre Guedes
---
igc.c | 91 ++-
1 file changed, 90 insertions(+), 1 deletion(-)
diff --git a/igc.c b/igc.c
index 91ab64d..df3916c 100644
--- a/
This patch adds the initial support for parsing registers dumped by the
IGC driver. At this moment, only the Receive Address Low (RAL) and the
Receive Address High (RAH) registers are parsed. More registers will be
added on demand.
Signed-off-by: Andre Guedes
---
Makefile.am | 3 ++-
ethtool.c
This patch adds support for parsing the EType Queue Filter (ETQF)
registers fields.
Signed-off-by: Andre Guedes
---
igc.c | 34 ++
1 file changed, 34 insertions(+)
diff --git a/igc.c b/igc.c
index 6a2e06d..9c0a750 100644
--- a/igc.c
+++ b/igc.c
@@ -59,6 +59,14 @@
This patch adds support for parsing the VLAN Priority Queue Filter
(VLANPQF) register fields.
Signed-off-by: Andre Guedes
---
igc.c | 98 +++
1 file changed, 98 insertions(+)
diff --git a/igc.c b/igc.c
index df3916c..6a2e06d 100644
--- a/i
Hi all,
This patch series adds support for parsing registers dumped by the IGC driver.
For now, the following registers are parsed:
* Receive Address Low (RAL)
* Receive Address High (RAH)
* Receive Control (RCTL)
* VLAN Priority Queue Filter (VLANPQF)
* ET
Hi Vasily,
I love your patch! Yet something to improve:
[auto build test ERROR on bluetooth-next/master]
[also build test ERROR on sunxi/sunxi/for-next v5.8-rc4 next-20200707]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as
From: Bolarinwa Olayemi Saheed
There are several reasons why a PCI capability read may fail whether the
device is present or not. If this happens, pcie_capability_read_*() will
return -EINVAL/PCIBIOS_BAD_REGISTER_NUMBER or PCIBIOS_DEVICE_NOT_FOUND
and *val is set to 0.
This behaviour if further
From: Bolarinwa Olayemi Saheed
MERGING:
Only Patch 13/13 depend on all preceeding patchs. All other patches are
independent of one another. Hence, please merge PATCH 13/13 only after
other patches in this series have been merged.
PATCH 6/13:
Make the function set status to "Power On" by default
Even with one advertisement monitor in place, the scan policy should use
the whitelist while the system is going to suspend to prevent waking by
random advertisement.
The following test was performed.
- With a paired device, register one advertisement monitor, suspend
the system and verify that th
From: Shannon Nelson
Date: Tue, 7 Jul 2020 14:13:26 -0700
> The queue reset pattern is used in a couple different places,
> only slightly different from each other, and could cause
> issues if one gets changed and the other didn't. This puts
> them together so that only one version is needed, y
From: Chris Healy
Date: Tue, 7 Jul 2020 13:32:05 -0700
> Add error checking with sfp_irq_name before use.
>
> Signed-off-by: Chris Healy
Applied.
From: Toke Høiland-Jørgensen
Date: Tue, 7 Jul 2020 13:03:25 +0200
> Toshiaki pointed out that we now have two very similar functions to extract
> the L3 protocol number in the presence of VLAN tags. And Daniel pointed out
> that the unbounded parsing loop makes it possible for maliciously crafte
From: "Gustavo A. R. Silva"
Date: Tue, 7 Jul 2020 12:21:38 -0500
> Replace the existing /* fall through */ comments and its variants with
> the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
> fall-through markings when it is the case.
>
> [1]
> https://www.kernel.org/doc/htm
From: "Alexander A. Klimov"
Date: Mon, 6 Jul 2020 22:50:18 +0200
> Rationale:
> Reduces attack surface on kernel devs opening the links for MITM
> as HTTPS traffic is much harder to manipulate.
>
> Deterministic algorithm:
> For each file:
> If not .svg:
> For each line:
> If doesn'
From: "Alexander A. Klimov"
Date: Mon, 6 Jul 2020 22:50:30 +0200
> Rationale:
> Reduces attack surface on kernel devs opening the links for MITM
> as HTTPS traffic is much harder to manipulate.
>
> Deterministic algorithm:
> For each file:
> If not .svg:
> For each line:
> If doesn'
On 7/7/20 4:16 PM, Nick Desaulniers wrote:
> From: Jakub Kicinski
>
> When ur_load_imm_any() is inlined into jeq_imm(), it's possible for the
> compiler to deduce a case where _val can only have the value of -1 at
> compile time. Specifically,
>
> /* struct bpf_insn: _s32 imm */
> u64 imm = insn
From: Alexander Lobakin
Date: Mon, 6 Jul 2020 12:25:53 +0300
> When generating debug dump, driver firstly collects all data in binary
> form, and then performs per-feature formatting to human-readable if it
> is supported.
>
> For ethtool -d, this is roughly incorrect for two reasons. First of a
From: Colin King
Date: Mon, 6 Jul 2020 13:12:40 +0100
> From: Colin Ian King
>
> There are spelling mistakes in various literal strings. Fix these.
>
> Signed-off-by: Colin Ian King
Applied, thanks.
From: Florian Fainelli
Date: Sun, 5 Jul 2020 21:27:55 -0700
> This patch series untangles the ethtool netlink dependency with PHYLIB
> which exists because the cable test feature calls directly into PHY
> library functions. The approach taken here is to introduce
> ethtool_phy_ops function point
From: Randy Dunlap
Date: Sun, 5 Jul 2020 19:55:44 -0700
> From: Randy Dunlap
>
> Fix table formatting to eliminate warnings.
>
> Documentation/networking/ethtool-netlink.rst:509: WARNING: Malformed table.
> Documentation/networking/ethtool-netlink.rst:522: WARNING: Malformed table.
> Documenta
From: Linus Lüssing
Date: Sun, 5 Jul 2020 21:10:17 +0200
> Commit e57f61858b7c ("net: bridge: mcast: fix stale nsrcs pointer in
> igmp3/mld2 report handling") introduced a bug in the IPv6 header payload
> length check which would potentially lead to rejecting a valid MLD2 Report:
>
> The check
From: Bartosz Golaszewski
Date: Sun, 5 Jul 2020 11:55:47 +0200
> From: Bartosz Golaszewski
>
> If phylib is built as a module and CONFIG_MDIO_DEVICE is 'y', the
> mdio_device and mdio_bus code will be in the phylib module, not in the
> kernel image. Meanwhile we build mdio_devres depending on
From: Martin Varghese
Date: Sun, 5 Jul 2020 14:23:49 +0530
> From: Martin Varghese
>
> The packets from tunnel devices (eg bareudp) may have only
> metadata in the dst pointer of skb. Hence a pointer check of
> neigh_lookup is needed in dst_neigh_lookup_skb
>
> Kernel crashes when packets fro
On Tue, 7 Jul 2020 14:13:26 -0700 Shannon Nelson wrote:
> The queue reset pattern is used in a couple different places,
> only slightly different from each other, and could cause
> issues if one gets changed and the other didn't. This puts
> them together so that only one version is needed, yet e
From: we...@ucloud.cn
Date: Sat, 4 Jul 2020 15:42:47 +0800
> From: wenxu
>
> When tcf_ct_act execute the tcf_lastuse_update should
> be update or the used stats never update
>
> filter protocol ip pref 3 flower chain 0
> filter protocol ip pref 3 flower chain 0 handle 0x1
> eth_type ipv4
>
From: Sebastian Andrzej Siewior
Date: Fri, 3 Jul 2020 18:44:32 +0200
> rwlock.h should not be included directly. Instead linux/splinlock.h
> should be included. Including it directly will break the RT build.
>
> Fixes: 549c243e4e010 ("net/mlx5e: Extract neigh-specific code from en_rep.c
> to re
From: Paolo Abeni
Date: Fri, 3 Jul 2020 18:06:04 +0200
> The RFC 8684 mandates that no-data DATA FIN packets should carry
> a DSS with 0 sequence number and data len equal to 1. Currently,
> on FIN retransmission we re-use the existing mapping; if the previous
> fin transmission was part of a pa
From: Sabrina Dubroca
Date: Fri, 3 Jul 2020 17:00:32 +0200
> IPv4 ping sockets don't set fl4.fl4_icmp_{type,code}, which leads to
> incomplete IPsec ACQUIRE messages being sent to userspace. Currently,
> both raw sockets and IPv6 ping sockets set those fields.
>
> Expected output of "ip xfrm mo
From: Tobias Waldekranz
Date: Fri, 3 Jul 2020 16:10:58 +0200
> In the ISR, we poll the event register for the queues in need of
> service and then enter polled mode. After this point, the event
> register will never be read again until we exit polled mode.
>
> In a scenario where a UDP flow is
From: t...@redhat.com
Date: Fri, 3 Jul 2020 06:33:59 -0700
> From: Tom Rix
>
> clang static analysis flags this garbage return
>
> drivers/net/ethernet/marvell/sky2.c:208:2: warning: Undefined or garbage
> value returned to caller [core.uninitialized.UndefReturn]
> return v;
>
From: Vaibhav Gupta
Date: Fri, 3 Jul 2020 08:31:36 +0530
> Linux Kernel Mentee: Remove Legacy Power Management.
>
> The purpose of this patch series is to remove legacy power management
> callbacks
> from smsc ethernet drivers.
>
> The callbacks performing suspend() and resume() operations ar
On Tue, Jul 7, 2020 at 2:45 PM Daniel Borkmann wrote:
>
> On 7/7/20 1:01 AM, Stanislav Fomichev wrote:
> > Simple test that enforces a single SOCK_DGRAM socker per cgroup.
> >
> > Signed-off-by: Stanislav Fomichev
> > ---
> > .../selftests/bpf/prog_tests/udp_limit.c | 75 ++
On 7/7/2020 2:16 PM, Linus Walleij wrote:
> This activates the support to use the CPU tag to properly
> direct ingress traffic to the right port.
>
> Bit 15 in register RTL8368RB_CPU_CTRL_REG can be set to
> 1 to disable the insertion of the CPU tag which is what
> the code currently does. The
On 7/7/2020 2:16 PM, Linus Walleij wrote:
> This implements the known parts of the Realtek 4 byte
> tag protocol version 0xA, as found in the RTL8366RB
> DSA switch.
>
> It is designated as protocol version 0xA as a
> different Realtek 4 byte tag format with protocol
> version 0x9 is known to e
On 7/7/2020 2:16 PM, Linus Walleij wrote:
> This is essentially the two first patches of the previous
> patch set: we split off the tagging support and deal
> with the VLAN set-up in a separate patch set since it
> seems we need some more discussion around that.
Yes, good idea to split them tha
On 7/7/20 1:01 AM, Stanislav Fomichev wrote:
Simple test that enforces a single SOCK_DGRAM socker per cgroup.
Signed-off-by: Stanislav Fomichev
---
.../selftests/bpf/prog_tests/udp_limit.c | 75 +++
tools/testing/selftests/bpf/progs/udp_limit.c | 42 +++
2 files
On 7/7/20 1:42 AM, Andrii Nakryiko wrote:
On Mon, Jul 6, 2020 at 4:02 PM Stanislav Fomichev wrote:
Implement BPF_CGROUP_INET_SOCK_RELEASE hook that triggers
on inet socket release. It triggers only for userspace
sockets, the same semantics as existing BPF_CGROUP_INET_SOCK_CREATE.
The only que
debugfs_create_u32_array() allocates a small structure to wrap
the data and size information about the array. If users ever
try to remove the file this leads to a leak since nothing ever
frees this wrapper.
That said there are no upstream users of debugfs_create_u32_array()
that'd remove a u32 arr
Make it possible to use tunnel types as flags more easily.
There doesn't appear to be any user using the type as an
array index, so this should make no difference.
Signed-off-by: Jakub Kicinski
---
include/net/udp_tunnel.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a
Add UDP tunnel port handlers to our fake driver so we can test
the core infra.
Signed-off-by: Jakub Kicinski
---
drivers/net/netdevsim/Makefile | 2 +-
drivers/net/netdevsim/dev.c | 1 +
drivers/net/netdevsim/netdev.c | 12 +-
drivers/net/netdevsim/netdevsim.h | 19 +++
Cater to devices which:
(a) may want to sleep in the callbacks;
(b) only have IPv4 support;
(c) need all the programming to happen while the netdev is up.
Drivers attach UDP tunnel offload info struct to their netdevs,
where they declare how many UDP ports of various tunnel types
they support.
On 7/7/20 1:06 PM, Cong Wang wrote:
> On Mon, Jul 6, 2020 at 1:34 PM YU, Xiangning
> wrote:
>>
>>
>>
>> On 7/6/20 1:10 PM, Cong Wang wrote:
>>> On Mon, Jul 6, 2020 at 11:11 AM YU, Xiangning
>>> wrote:
+static int ltb_enqueue(struct sk_buff *skb, struct Qdisc *sch, spinlock_t
*root_l
Make use of new common udp_tunnel_nic infra. ixgbe supports
IPv4 only, and only single VxLAN and Geneve ports (one each).
I'm dropping the confusing piece of code in ixgbe_set_features().
ndo_udp_tunnel_add and ndo_udp_tunnel_del did not check if RXCSUM
is enabled, so this code was either unnecess
Convert to new infra, make use of the ability to sleep in the callback.
Signed-off-by: Jakub Kicinski
---
.../net/ethernet/mellanox/mlx4/en_netdev.c| 107 --
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 2 -
2 files changed, 25 insertions(+), 84 deletions(-)
diff --git
Convert to new infra, taking advantage of sleeping in callbacks.
Signed-off-by: Jakub Kicinski
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 133 ++
drivers/net/ethernet/broadcom/bnxt/bnxt.h | 6 -
2 files changed, 34 insertions(+), 105 deletions(-)
diff --git a/drivers/
Add an interface to report offloaded UDP ports via ethtool netlink.
Now that core takes care of tracking which UDP tunnel ports the NICs
are aware of we can quite easily export this information out to
user space.
The responsibility of writing the netlink dumps is split between
ethtool code and ud
Kernel has a facility to notify drivers about the UDP tunnel ports
so that devices can recognize tunneled packets. This is important
mostly for RX - devices which don't support CHECKSUM_COMPLETE can
report checksums of inner packets, and compute RSS over inner headers.
Some drivers also match the U
On Tue, Jul 07, 2020 at 02:02:32 +0800, Xin Long wrote:
> In the tx path of l2tp, l2tp_xmit_skb() calls skb_dst_set() to set
> skb's dst. However, it will eventually call inet6_csk_xmit() or
> ip_queue_xmit() where skb's dst will be overwritten by:
>
>skb_dst_set_noref(skb, dst);
>
> without
Add validating the UDP tunnel infra works.
$ ./udp_tunnel_nic.sh
PASSED all 383 checks
Signed-off-by: Jakub Kicinski
---
.../drivers/net/netdevsim/udp_tunnel_nic.sh | 786 ++
1 file changed, 786 insertions(+)
create mode 100644
tools/testing/selftests/drivers/net/netdevsim/u
Now that there are USXGMII constants available, drop the old definitions
and reuse the generic ones.
Signed-off-by: Michael Walle
---
drivers/net/dsa/ocelot/felix_vsc9959.c | 45 +++---
1 file changed, 12 insertions(+), 33 deletions(-)
diff --git a/drivers/net/dsa/ocelot/fel
This is a resend [now a new v4] of the series because the conversion to the
phylink interface will likely take longer:
https://lore.kernel.org/netdev/CA+h21hpBodyY8CtNH2ktRdc2FqPi=Fjp94=vvzvzsvbnvnf...@mail.gmail.com/
Also the discussion in the v3 resend doesn't look like it will be resolved
soon :
ENETC has ethernet MACs capable of SGMII, 2500BaseX and USXGMII. But in
order to use these protocols some SerDes configurations need to be
performed. The SerDes is configurable via an internal PCS PHY which is
connected to an internal MDIO bus at address 0.
This patch basically removes the depende
From: Alex Marginean
Use DT information rather than in-band information from bootloader to
set up MAC for XGMII. For RGMII use the DT indication in addition to
RGMII defaults in hardware.
However, this implies that PHY connection information needs to be
extracted before netdevice creation, when t
The constants are taken from the USXGMII Singleport Copper Interface
specification. The naming are based on the SGMII ones, but with an MDIO_
prefix.
Signed-off-by: Michael Walle
---
include/uapi/linux/mdio.h | 26 ++
1 file changed, 26 insertions(+)
diff --git a/include
On 7/7/2020 12:01 PM, Shyam Sundar S K wrote:
>
> On 7/7/2020 11:25 PM, Andrew Lunn wrote:
>> [CAUTION: External Email]
>>
>> On Tue, Jul 07, 2020 at 05:32:54PM +, Shyam Sundar S K wrote:
>>> In embedded environments, ethtool may not be available to toggle between
>>> auto negotiation on/of
This activates the support to use the CPU tag to properly
direct ingress traffic to the right port.
Bit 15 in register RTL8368RB_CPU_CTRL_REG can be set to
1 to disable the insertion of the CPU tag which is what
the code currently does. The bit 15 define calls this
setting RTL8368RB_CPU_INSTAG whi
This implements the known parts of the Realtek 4 byte
tag protocol version 0xA, as found in the RTL8366RB
DSA switch.
It is designated as protocol version 0xA as a
different Realtek 4 byte tag format with protocol
version 0x9 is known to exist in the Realtek RTL8306
chips.
The tag and switch chip
This is essentially the two first patches of the previous
patch set: we split off the tagging support and deal
with the VLAN set-up in a separate patch set since it
seems we need some more discussion around that.
Linus Walleij (2):
net: dsa: tag_rtl4_a: Implement Realtek 4 byte A tag
net: dsa:
On 7/7/2020 10:18 AM, Rob Herring wrote:
> On Tue, Jul 7, 2020 at 10:39 AM Florian Fainelli wrote:
>>
>>
>>
>> On 7/7/2020 7:54 AM, Maxime Ripard wrote:
>>> Hi Andrew,
>>>
>>> On Tue, Jul 07, 2020 at 04:19:18PM +0200, Andrew Lunn wrote:
On Mon, Jul 06, 2020 at 08:13:31PM +0200, Maxime Ripa
The queue reset pattern is used in a couple different places,
only slightly different from each other, and could cause
issues if one gets changed and the other didn't. This puts
them together so that only one version is needed, yet each
can have slighty different effects by passing in a pointer
to
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url:
https://github.com/0day-ci/linux/commits/izabela-bakollari-gmail-com/dropwatch-Support-monitoring-of-dropped-frames/20200708-011806
base: https://git.kernel.org/pub/scm/linux/kernel/git/d
1 - 100 of 250 matches
Mail list logo