Re: [PATCH net v1] lan743x: fix ethernet frame cutoff issue

2021-04-14 Thread Julian Wiedmann
On 14.04.21 15:19, Sven Van Asbroeck wrote: > Hi Julian, > > On Wed, Apr 14, 2021 at 8:53 AM Julian Wiedmann wrote: >> >> On a cursory glance, using __netdev_alloc_skb_ip_align() here should >> allow you to get rid of all the RX_HEAD_PADDING gymnastics. >> >&

Re: [PATCH net v1] lan743x: fix ethernet frame cutoff issue

2021-04-14 Thread Julian Wiedmann
On 09.04.21 02:39, Sven Van Asbroeck wrote: > From: Sven Van Asbroeck > > The ethernet frame length is calculated incorrectly. Depending on > the value of RX_HEAD_PADDING, this may result in ethernet frames > that are too short (cut off at the end), or too long (garbage added > to the end). > >

Re: [PATCH net v2] net: Reset MAC header for direct packet transmission

2021-03-29 Thread Julian Wiedmann
On 29.03.21 14:13, Eric Dumazet wrote: > On Mon, Mar 29, 2021 at 12:30 PM Kurt Kanzenbach wrote: >> >> On Mon Mar 29 2021, Eric Dumazet wrote: >>> Note that last year, I addressed the issue differently in commit >>> 96cc4b69581db68efc9749ef32e9cf8e0160c509 >>> ("macvlan: do not assume mac_header i

[PATCH net-next 2/3] s390/qeth: enable napi_consume_skb() for pending TX buffers

2021-03-18 Thread Julian Wiedmann
Pending TX buffers are completed from the same NAPI code as normal TX buffers. Pass the NAPI budget to qeth_tx_complete_buf() so that the freeing of the completed skbs can be deferred. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 8 1 file changed, 4

[PATCH net-next 1/3] s390/qeth: allocate initial TX Buffer structs with GFP_KERNEL

2021-03-18 Thread Julian Wiedmann
name. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index a814698387bc..abd1e49cf97a 100644 --- a/drivers/s390/net/qeth_core_ma

[PATCH net-next 3/3] s390/qeth: remove RX VLAN filter stubs in L3 driver

2021-03-18 Thread Julian Wiedmann
The callbacks have been slimmed down to a level where they no longer do any actual work. So stop pretending that we support the NETIF_F_HW_VLAN_CTAG_FILTER feature. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_main.c | 25 + 1 file changed, 1 insertion

[PATCH net-next 0/3] s390/qeth: updates 2021-03-18

2021-03-18 Thread Julian Wiedmann
Hi Dave & Jakub, please apply the following patch series for qeth to netdev's net-next tree. This brings two small optimizations (replace a hard-coded GFP_ATOMIC, pass through the NAPI budget to enable napi_consume_skb()), and removes some redundant VLAN filter code. Thanks, Julia

[PATCH net 3/4] s390/qeth: schedule TX NAPI on QAOB completion

2021-03-09 Thread Julian Wiedmann
storage blocks") Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 3763cd6d14f8..d0a56afec028 100644 --

[PATCH net 2/4] s390/qeth: improve completion of pending TX buffers

2021-03-09 Thread Julian Wiedmann
queue list_head, and scan this list on every TX NAPI cycle. Fixes: 0da9581ddb0f ("qeth: exploit asynchronous delivery of storage blocks") Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 3 +- drivers/s390/net/qeth_core_main.c | 69 +--

[PATCH net 4/4] s390/qeth: fix notification for pending buffers during teardown

2021-03-09 Thread Julian Wiedmann
completion path. Fixes: 8908f36d20d8 ("s390/qeth: fix af_iucv notification race") Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_ma

[PATCH net 0/4] s390/qeth: fixes 2021-03-09

2021-03-09 Thread Julian Wiedmann
teardown path. Thanks, Julian Julian Wiedmann (4): s390/qeth: fix memory leak after failed TX Buffer allocation s390/qeth: improve completion of pending TX buffers s390/qeth: schedule TX NAPI on QAOB completion s390/qeth: fix notification for pending buffers during teardown drivers

[PATCH net 1/4] s390/qeth: fix memory leak after failed TX Buffer allocation

2021-03-09 Thread Julian Wiedmann
tput_queue(), and deal with such errors internally. Fixes: 0da9581ddb0f ("qeth: exploit asynchronous delivery of storage blocks") Signed-off-by: Julian Wiedmann Reviewed-by: Alexandra Winter --- drivers/s390/net/qeth_core_main.c | 35 +++ 1 file changed,

Re: [PATCH net-next 8/8] mld: change context of mld module

2021-02-09 Thread Julian Wiedmann
On 08.02.21 18:59, Taehee Yoo wrote: > MLD module's context is atomic although most logic is called from > control-path, not data path. Only a few functions are called from > datapath, most of the functions are called from the control-path. > Furthermore, MLD's response is not processed immediately

Re: [PATCH net] net: lapb: Copy the skb before sending a packet

2021-02-01 Thread Julian Wiedmann
On 01.02.21 06:57, Xie He wrote: > When sending a packet, we will prepend it with an LAPB header. > This modifies the shared parts of a cloned skb, so we should copy the > skb rather than just clone it, before we prepend the header. > > In "Documentation/networking/driver.rst" (the 2nd point), it

[PATCH net-next 2/5] net/af_iucv: don't lookup the socket on TX notification

2021-01-28 Thread Julian Wiedmann
Whoever called iucv_sk(sk)->sk_txnotify() must already know that they're dealing with an af_iucv socket. Signed-off-by: Julian Wiedmann --- net/iucv/af_iucv.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv

[PATCH net-next 1/5] net/af_iucv: remove WARN_ONCE on malformed RX packets

2021-01-28 Thread Julian Wiedmann
c4ab4>] system_call+0xe0/0x28c arch/s390/kernel/entry.S:415 Last Breaking-Event-Address: [<b8dc64d4>] __s390_indirect_jump_r14+0x0/0xc Malformed RX packets shouldn't generate any warnings because debugging info already flows to dropmon via the kfree_skb(). Signed-off-by: Alexander Egorenkov

[PATCH net-next 4/5] net/af_iucv: don't track individual TX skbs for TRANS_HIPER sockets

2021-01-28 Thread Julian Wiedmann
kbs' shinfo location) is frustratingly fragile, and breaks if the skb's head is mangled in any sort of way while passing from dev_queue_xmit() to the device's HW queue. Also adjust the interface for ->sk_txnotify(), to make clear that we don't actually care about any skb interna

[PATCH net-next 5/5] net/af_iucv: build SG skbs for TRANS_HIPER sockets

2021-01-28 Thread Julian Wiedmann
Signed-off-by: Julian Wiedmann --- net/iucv/af_iucv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 0e0656db4ae7..6092d5cb7168 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -256,7 +256,9 @@ static int afiucv

[PATCH net-next 3/5] net/af_iucv: count packets in the xmit path

2021-01-28 Thread Julian Wiedmann
look at the skb list's fill level. Signed-off-by: Julian Wiedmann --- include/net/iucv/af_iucv.h | 1 + net/iucv/af_iucv.c | 30 -- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.

[PATCH net-next 0/5] net/iucv: updates 2021-01-28

2021-01-28 Thread Julian Wiedmann
an Alexander Egorenkov (1): net/af_iucv: remove WARN_ONCE on malformed RX packets Julian Wiedmann (4): net/af_iucv: don't lookup the socket on TX notification net/af_iucv: count packets in the xmit path net/af_iucv: don't track individual TX skbs for TRANS_HIPER sockets net/af_

[PATCH net-next 0/5] s390/qeth: updates 2021-01-28

2021-01-28 Thread Julian Wiedmann
Hi Dave & Jakub, please apply the following patch series for qeth to netdev's net-next tree. Nothing special, mostly fine-tuning and follow-on cleanups for earlier fixes. Thanks, Julian Julian Wiedmann (5): s390/qeth: clean up load/remove code for disciplines s390/qet

[PATCH net-next 5/5] s390/qeth: don't fake a TX completion interrupt after TX error

2021-01-28 Thread Julian Wiedmann
processing accordingly. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 34 --- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index de9d27e1c529..ea2e139cd592 10

[PATCH net-next 4/5] s390/qeth: make cast type selection for af_iucv skbs robust

2021-01-28 Thread Julian Wiedmann
stead that does the right thing. When later building the HW header for such skbs, don't hard-code the cast type but follow the same path as for other protocol types. Here the cast type should naturally come from the skb's queue mapping. Signed-off-by: Julian Wiedmann --- d

[PATCH net-next 1/5] s390/qeth: clean up load/remove code for disciplines

2021-01-28 Thread Julian Wiedmann
We have two usage patterns: 1. get & ->setup() a new discipline, or 2. ->remove() & put the currently loaded one. Add corresponding helpers that hide the internals & error handling. Signed-off-by: Julian Wiedmann Reviewed-by: Alexandra Winter --- drivers/s390/net/qet

[PATCH net-next 2/5] s390/qeth: remove qeth_get_ip_version()

2021-01-28 Thread Julian Wiedmann
statement. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 40 - drivers/s390/net/qeth_core_main.c | 18 +- drivers/s390/net/qeth_l2_main.c | 6 ++-- drivers/s390/net/qeth_l3_main.c | 60 ++- 4 files changed, 62

[PATCH net-next 3/5] s390/qeth: pass proto to qeth_l3_get_cast_type()

2021-01-28 Thread Julian Wiedmann
qeth_l3_hard_start_xmit() already determined the skb's proto. Avoid doing so a second time when it calls qeth_l3_get_cast_type(). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_main.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/s39

[PATCH net 2/3] s390/qeth: fix locking for discipline setup / removal

2021-01-07 Thread Julian Wiedmann
patch by Ursula Braun. Fixes: 9dc48ccc68b9 ("qeth: serialize sysfs-triggered device configurations") Signed-off-by: Julian Wiedmann Reviewed-by: Alexandra Winter --- drivers/s390/net/qeth_core_main.c | 7 +-- drivers/s390/net/qeth_l2_main.c | 5 + drivers/s390/net/qeth_l3_ma

[PATCH net 0/3] s390/qeth: fixes 2021-01-07

2021-01-07 Thread Julian Wiedmann
Hi Dave & Jakub, please apply the following patch series to netdev's net tree. This brings two locking fixes for the device control path. Also one fix for a path where our .ndo_features_check() attempts to access a non-existent L2 header. Thanks, Julian Julian Wiedmann (3): s390/

[PATCH net 1/3] s390/qeth: fix deadlock during recovery

2021-01-07 Thread Julian Wiedmann
() itself is under no risk of having card->discipline ripped out while it's running, and thus doesn't need to take the discipline_mutex. Fixes: 9dc48ccc68b9 ("qeth: serialize sysfs-triggered device configurations") Signed-off-by: Julian Wiedmann Reviewed-by: Alexandra Winter

[PATCH net 3/3] s390/qeth: fix L2 header access in qeth_l3_osa_features_check()

2021-01-07 Thread Julian Wiedmann
Fixes: f13ade199391 ("s390/qeth: run non-offload L3 traffic over common xmit path") Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c ind

Re: UBSAN: object-size-mismatch in wg_xmit

2021-01-07 Thread Julian Wiedmann
On 21.12.20 12:23, Jason A. Donenfeld wrote: > Hi Dmitry, > ... > fall on the border of a mapping? Is UBSAN non-deterministic as an > optimization? Or is there actually some mysterious UaF happening with > my usage of skbs that I shouldn't overlook? > One oddity is that wg_xmit() returns negat

[PATCH net-next] net: ip_tunnel: clean up endianness conversions

2021-01-07 Thread Julian Wiedmann
re.c:629:30:got restricted __be16 [usertype] The TUNNEL_* types are big-endian, so adjust the type of the local variable in ip_tun_parse_opts(). Cc: Alexey Kuznetsov Cc: Hideaki YOSHIFUJI Signed-off-by: Julian Wiedmann --- net/ipv4/ip_tunnel_core.c | 9 + 1 file chan

[PATCH net-next] ppp: clean up endianness conversions

2021-01-07 Thread Julian Wiedmann
flavour of byte-swap. Use ntohs(), which of course gives the same result. Cc: Dmitry Kozlov Signed-off-by: Julian Wiedmann --- drivers/net/ppp/pptp.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c index ee5058445d06..0

Re: [PATCH] net: korina: remove busy skb free

2020-12-14 Thread Julian Wiedmann
On 13.12.20 18:20, Vincent Stehlé wrote: > The ndo_start_xmit() method must not attempt to free the skb to transmit > when returning NETDEV_TX_BUSY. Fix the korina_send_packet() function > accordingly. > > Fixes: ef11291bcd5f ("Add support the Korina (IDT RC32434) Ethernet MAC") > Signed-off-by: V

Re: [PATCH net-next 0/6] s390/qeth: updates 2020-12-07

2020-12-07 Thread Julian Wiedmann
On 07.12.20 16:57, David Miller wrote: > From: Julian Wiedmann > Date: Mon, 7 Dec 2020 14:12:27 +0100 > >> Hi Jakub, >> >> please apply the following patch series for qeth to netdev's net-next tree. >> >> Some sysfs cleanups (with the prep wo

[PATCH net-next 1/6] s390/qeth: don't call INIT_LIST_HEAD() on iob's list entry

2020-12-07 Thread Julian Wiedmann
INIT_LIST_HEAD() only needs to be called on actual list heads. While at it clarify the naming of the field. Suggested-by: Vasily Gorbik Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 2 +- drivers/s390/net/qeth_core_main.c | 9 - 2 files changed, 5 insertions

[PATCH net-next 6/6] s390/qeth: make qeth_qdio_handle_aob() more robust

2020-12-07 Thread Julian Wiedmann
igned-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index da27ef451d05..f4b60294a969 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers

[PATCH net-next 0/6] s390/qeth: updates 2020-12-07

2020-12-07 Thread Julian Wiedmann
patch from the previous net-next submission. Thanks, Julian Julian Wiedmann (6): s390/qeth: don't call INIT_LIST_HEAD() on iob's list entry s390/ccwgroup: use bus->dev_groups for bus-based sysfs attributes s390/qeth: use dev->groups for common sysfs attributes s390/qeth:

[PATCH net-next 4/6] s390/qeth: don't replace a fully completed async TX buffer

2020-12-07 Thread Julian Wiedmann
ration for qeth_init_qdio_out_buf(). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 89 ++- 1 file changed, 51 insertions(+), 38 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 05d0b16bd7d6..869694217

[PATCH net-next 5/6] s390/qeth: remove QETH_QDIO_BUF_HANDLED_DELAYED state

2020-12-07 Thread Julian Wiedmann
Reuse the QETH_QDIO_BUF_EMPTY state to indicate that a TX buffer has been completed with a QAOB notification, and may be cleaned up by qeth_cleanup_handled_pending(). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 2 -- drivers/s390/net/qeth_core_main.c | 5 ++--- 2

[PATCH net-next 3/6] s390/qeth: use dev->groups for common sysfs attributes

2020-12-07 Thread Julian Wiedmann
ned-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 6 ++--- drivers/s390/net/qeth_core_main.c | 7 -- drivers/s390/net/qeth_core_sys.c | 41 ++- drivers/s390/net/qeth_l2.h| 2 -- drivers/s390/net/qeth_l2_main.c | 4 +-- drivers/s390/

[PATCH net-next 2/6] s390/ccwgroup: use bus->dev_groups for bus-based sysfs attributes

2020-12-07 Thread Julian Wiedmann
GROUPS() to get rid of some boilerplate code. Signed-off-by: Julian Wiedmann Acked-by: Heiko Carstens --- drivers/s390/cio/ccwgroup.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c index 483a9ecfcbb1..444385

[PATCH net-next] net/af_iucv: use DECLARE_SOCKADDR to cast from sockaddr

2020-12-07 Thread Julian Wiedmann
This gets us compile-time size checking. Signed-off-by: Julian Wiedmann --- net/iucv/af_iucv.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index db7d888914fa..882f028992c3 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv

Re: [PATCH] net: 8021q: use netdev_info() instead of pr_info()

2020-12-02 Thread Julian Wiedmann
On 02.12.20 14:45, Enrico Weigelt, metux IT consult wrote: > Use netdev_info() instead of pr_info() for more consistent log output. > > Signed-off-by: Enrico Weigelt > --- > net/8021q/vlan.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/8021q/vlan.c b/net/8021

[PATCH net-next 4/6] s390/ctcm: Use explicit allocation mask in ctcmpc_unpack_skb().

2020-11-30 Thread Julian Wiedmann
argument passed by the caller, which usually knows the context. The call chain of ctcmpc_unpack_skb(): ctcmpc_bh() -> ctcmpc_unpack_skb() ctcmpc_bh() is a tasklet handler so GFP_ATOMIC is needed. Use GFP_ATOMIC as allocation type in ctcmpc_unpack_skb(). Reviewed-by: Julian Wiedmann Signed-

[PATCH net-next 3/6] s390/ctcm: Avoid temporary allocation of struct pdu.

2020-11-30 Thread Julian Wiedmann
id an allocation of struct pdu and use the resulting skb pointer instead. Signed-off-by: Sebastian Andrzej Siewior [jwi: Fix-up the pdu_offset, adjust skb->len for the pushed length. Reflow the commit msg.] Signed-off-by: Julian Wiedmann --- drivers/s390/net/ctcm_mai

[PATCH net-next 2/6] s390/ctcm: Avoid temporary allocation of struct qllc.

2020-11-30 Thread Julian Wiedmann
Avoid an allocation of struct qllc and use the resulting skb pointer instead. Signed-off-by: Sebastian Andrzej Siewior [jwi: remove a newline, reflow the commit msg] Signed-off-by: Julian Wiedmann --- drivers/s390/net/ctcm_mpc.c | 21 - 1 file changed, 4 insertions(+

[PATCH net-next 1/6] s390/ctcm: Avoid temporary allocation of struct th_header and th_sweep.

2020-11-30 Thread Julian Wiedmann
x27;s data part instead of using memcpy() for it. Avoid an allocation of struct th_sweep/th_header and use the resulting skb pointer instead. Signed-off-by: Sebastian Andrzej Siewior [jwi: use skb_put_zero(), instead of skb_put() + memset to 0] Signed-off-by: Julian Wiedmann --- drivers/s39

[PATCH net-next 5/6] s390/ctcm: Use GFP_KERNEL in add_channel().

2020-11-30 Thread Julian Wiedmann
argument passed by the caller, which usually knows the context. The memory allocation of `ch' a few lines above is using GFP_KERNEL, also an allocation a few lines later is using GFP_KERNEL. Use GFP_KERNEL for the memory allocation. Reviewed-by: Julian Wiedmann Signed-off-by: Sebastian An

[PATCH net-next 6/6] s390/ctcm: Use GFP_ATOMIC in ctcmpc_tx().

2020-11-30 Thread Julian Wiedmann
Wiedmann Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Julian Wiedmann --- drivers/s390/net/ctcm_main.c | 2 +- drivers/s390/net/ctcm_main.h | 5 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c index

[PATCH net-next 0/6] s390/ctcm: updates 2020-11-30

2020-11-30 Thread Julian Wiedmann
Hi Jakub, please apply the following patch series for ctcm to netdev's net-next tree. Some rare ctcm updates by Sebastian, who cleans up all places where in_interrupt() was used to determine the correct GFP_* mask for allocations. In the first three patches we can get rid of those allocations ent

[PATCH net] net/af_iucv: set correct sk_protocol for child sockets

2020-11-20 Thread Julian Wiedmann
n skb_dump() right). Fixes: eac3731bd04c ("[S390]: Add AF_IUCV socket support") Signed-off-by: Julian Wiedmann --- net/iucv/af_iucv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 047238f01ba6..db7d888914fa 100

[PATCH net 1/4] s390/qeth: Remove pnso workaround

2020-11-20 Thread Julian Wiedmann
From: Alexandra Winter Remove workaround that supported early hardware implementations of PNSO OC3. Rely on the 'enarf' feature bit instead. Fixes: fa115adff2c1 ("s390/qeth: Detect PNSO OC3 capability") Signed-off-by: Alexandra Winter Reviewed-by: Julian Wiedmann [jwi: us

[PATCH net 3/4] s390/qeth: fix af_iucv notification race

2020-11-20 Thread Julian Wiedmann
tracking of pending transmits. Rework the notification code, so that qeth_qdio_handle_aob() defers its notification if the TX completion code is still active. Fixes: b333293058aa ("qeth: add support for af_iucv HiperSockets transport") Signed-off-by: Julian Wiedmann --- driver

[PATCH net 0/4] s390/qeth: fixes 2020-11-20

2020-11-20 Thread Julian Wiedmann
if there's any issues on their end. Thanks, Julian Alexandra Winter (1): s390/qeth: Remove pnso workaround Julian Wiedmann (3): s390/qeth: make af_iucv TX notification call more robust s390/qeth: fix af_iucv notification race s390/qeth: fix tear down of async TX buffers d

[PATCH net 4/4] s390/qeth: fix tear down of async TX buffers

2020-11-20 Thread Julian Wiedmann
se it after a potential recovery has completed. The qeth_clear_output_buffer() in qeth_drain_output_queue() will ensure that it's in a clean state again. Fixes: 72861ae792c2 ("qeth: recovery through asynchronous delivery") Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_cor

[PATCH net 2/4] s390/qeth: make af_iucv TX notification call more robust

2020-11-20 Thread Julian Wiedmann
Calling into socket code is ugly already, at least check whether we are dealing with the expected sk_family. Only looking at skb->protocol is bound to cause troubles (consider eg. af_packet). Fixes: b333293058aa ("qeth: add support for af_iucv HiperSockets transport") Signed-o

Re: [PATCH net-next 0/9] s390/qeth: updates 2020-11-17

2020-11-19 Thread Julian Wiedmann
On 19.11.20 03:35, Jakub Kicinski wrote: > On Tue, 17 Nov 2020 17:15:11 +0100 Julian Wiedmann wrote: >> please apply the following patch series for qeth to netdev's net-next tree. >> >> This brings some cleanups, and a bunch of improvements for our >> .get_lin

[PATCH net-next 1/9] s390/qeth: don't call INIT_LIST_HEAD() on iob's list entry

2020-11-17 Thread Julian Wiedmann
INIT_LIST_HEAD() only needs to be called on actual list heads. While at it clarify the naming of the field. Suggested-by: Vasily Gorbik Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 2 +- drivers/s390/net/qeth_core_main.c | 9 - 2 files changed, 5 insertions

[PATCH net-next 2/9] s390/qeth: reduce rtnl locking for switchdev events

2020-11-17 Thread Julian Wiedmann
call_switchdev_notifiers() doesn't require holding the RTNL lock since commit ff5cf100110c ("net: switchdev: Change notifier chain to be atomic"). We still need it for the "lost event" slow path, to avoid racing against a concurrent .ndo_bridge_setlink(). Signed-off-by:

[PATCH net-next 7/9] s390/qeth: clean up default cases for ethtool link mode

2020-11-17 Thread Julian Wiedmann
(ie. it's much more likely that any future link_type will represent a PORT_FIBRE link ...). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_ethtool.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/s390/net/qeth_ethtool.c b/d

[PATCH net-next 0/9] s390/qeth: updates 2020-11-17

2020-11-17 Thread Julian Wiedmann
Hi Jakub, please apply the following patch series for qeth to netdev's net-next tree. This brings some cleanups, and a bunch of improvements for our .get_link_ksettings() code. Julian Wiedmann (8): s390/qeth: don't call INIT_LIST_HEAD() on iob's list entry s390/qeth: reduce r

[PATCH net-next 9/9] s390/qeth: improve selection of ethtool link modes

2020-11-17 Thread Julian Wiedmann
ferentiate between 1baseSR and 1baseLR, use the detailed media_type information that QUERY OAT provides. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 7 ++ drivers/s390/net/qeth_core_main.c | 11 +++ drivers/s390/net/qeth_ethtool.c | 124 ++-

[PATCH net-next 5/9] s390/qeth: improve QUERY CARD INFO processing

2020-11-17 Thread Julian Wiedmann
#x27; cases for SPEED_UNKNOWN, PORT_OTHER and DUPLEX_UNKNOWN. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 14 +++--- drivers/s390/net/qeth_core_main.c | 67 +--- drivers/s390/net/qeth_ethtool.c | 74 +-- 3 files changed

[PATCH net-next 8/9] s390/qeth: use QUERY OAT for initial link info

2020-11-17 Thread Julian Wiedmann
recent OSA adapter generations (where the .card_type field in QUERY CARD INFO is no longer sufficient). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 107 ++ drivers/s390/net/qeth_core_mpc.h | 40 ++- 2 files changed, 145 insertions(+), 2

[PATCH net-next 4/9] s390/qeth: tolerate error when querying card info

2020-11-17 Thread Julian Wiedmann
By the time that our .get_link_ksettings() code issues a QUERY CARD INFO cmd to get link-related information, we already set up a good amount of static link data. Return this data when the cmd fails, same as when the cmd is not supported. Signed-off-by: Julian Wiedmann --- drivers/s390/net

[PATCH net-next 3/9] s390/qeth: remove useless if/else

2020-11-17 Thread Julian Wiedmann
d-by: Tosk Robot Signed-off-by: Kaixu Xia [jwi: point to the commit that introduced this] Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_main.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_ma

[PATCH net-next 6/9] s390/qeth: set static link info during initialization

2020-11-17 Thread Julian Wiedmann
uture type. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 1 + drivers/s390/net/qeth_core_main.c | 38 +++ drivers/s390/net/qeth_ethtool.c | 34 +++ 3 files changed, 42 insertions(+), 31 deletions(-) diff --git a/driver

[PATCH net v2 0/2] net/iucv: fixes 2020-11-09

2020-11-08 Thread Julian Wiedmann
Hi Jakub, please apply the following patch series to netdev's net tree. One fix in the shutdown path for af_iucv sockets. This is relevant for stable as well. Also sending along an update for the Maintainers file. v1 -> v2: use the correct Fixes tag in patch 1 (Jakub) Thanks, Julian Ursula Bra

[PATCH net v2 2/2] MAINTAINERS: remove Ursula Braun as s390 network maintainer

2020-11-08 Thread Julian Wiedmann
From: Ursula Braun I am retiring soon. Thus this patch removes myself from the MAINTAINERS file (s390 network). Signed-off-by: Ursula Braun [jwi: fix up the subject] Signed-off-by: Julian Wiedmann --- MAINTAINERS | 3 --- 1 file changed, 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH net v2 1/2] net/af_iucv: fix null pointer dereference on shutdown

2020-11-08 Thread Julian Wiedmann
shutdown for HS transport") Reviewed-by: Vasily Gorbik Signed-off-by: Ursula Braun [jwi: correct one Fixes tag] Signed-off-by: Julian Wiedmann --- net/iucv/af_iucv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index d8057207

Re: [PATCH net 1/2] net/af_iucv: fix null pointer dereference on shutdown

2020-11-08 Thread Julian Wiedmann
On 06.11.20 18:59, Jakub Kicinski wrote: > On Fri, 6 Nov 2020 13:50:07 +0100 Julian Wiedmann wrote: >> From: Ursula Braun >> >> syzbot reported the following KASAN finding: >> >> BUG: KASAN: nullptr-dereference in iucv_send_ctrl+0x390/0x3f0 >> net/iucv/

[PATCH net 1/2] net/af_iucv: fix null pointer dereference on shutdown

2020-11-06 Thread Julian Wiedmann
shutdown for HS transport") Reviewed-by: Vasily Gorbik Signed-off-by: Ursula Braun Signed-off-by: Julian Wiedmann --- net/iucv/af_iucv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index d80572074667..047238f01ba6 100644 ---

[PATCH net 2/2] MAINTAINERS: remove Ursula Braun as s390 network maintainer

2020-11-06 Thread Julian Wiedmann
From: Ursula Braun I am retiring soon. Thus this patch removes myself from the MAINTAINERS file (s390 network). Signed-off-by: Ursula Braun [jwi: fix up the subject] Signed-off-by: Julian Wiedmann --- MAINTAINERS | 3 --- 1 file changed, 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH net 0/2] net/iucv: fixes 2020-11-06

2020-11-06 Thread Julian Wiedmann
Hi Jakub, please apply the following patch series to netdev's net tree. One fix in the shutdown path for af_iucv sockets. This is relevant for stable as well. Also sending along an update for the Maintainers file. Thanks, Julian Ursula Braun (2): net/af_iucv: fix null pointer dereference on s

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Julian Wiedmann
On 03.11.20 18:13, Vladimir Oltean wrote: > On Thu, Oct 29, 2020 at 10:10:56AM +0200, Claudiu Manoil wrote: >> When PTP timestamping is enabled on Tx, the controller >> inserts the Tx timestamp at the beginning of the frame >> buffer, between SFD and the L2 frame header. This means >> that the skb

[PATCH net-next 1/2] net/af_iucv: right-size the uid variable in iucv_sock_bind()

2020-10-01 Thread Julian Wiedmann
e data after the .siucv_user_id field, and we checked the size of the passed data earlier on. So the memcpy() won't accidentally read from an invalid location. Fix the warning by reducing the size of the uid variable to what's actually needed, and thus reducing the amount of copied da

[PATCH net-next 0/2] net/iucv: updates 2020-10-01

2020-10-01 Thread Julian Wiedmann
Hi Dave & Jakub, please apply the following patch series for iucv to netdev's net-next tree. Just two (rare) patches, and both deal with smatch warnings. Thanks, Julian Julian Wiedmann (2): net/af_iucv: right-size the uid variable in iucv_sock_bind() net/iucv: fix inden

[PATCH net-next 2/2] net/iucv: fix indentation in __iucv_message_receive()

2020-10-01 Thread Julian Wiedmann
smatch complains about net/iucv/iucv.c:1119 __iucv_message_receive() warn: inconsistent indenting While touching this line, also make the return logic consistent and thus get rid of a goto label. Signed-off-by: Julian Wiedmann Reviewed-by: Karsten Graul --- net/iucv/iucv.c | 8 +++- 1

[PATCH net-next 5/7] s390/qeth: use netdev_name()

2020-10-01 Thread Julian Wiedmann
Replace our custom version of netdev_name(). Once we started to allocate the netdev at probe time with commit d3d1b205e89f ("s390/qeth: allocate netdevice early"), this stopped working as intended anyway. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 3 -

[PATCH net-next 7/7] s390/ctcm: remove orphaned function declarations

2020-10-01 Thread Julian Wiedmann
aced ctc driver") Reviewed-by: Julian Wiedmann Signed-off-by: Vasily Gorbik Signed-off-by: Julian Wiedmann --- drivers/s390/net/ctcm_fsms.h | 1 - drivers/s390/net/ctcm_mpc.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/s390/net/ctcm_fsms.h b/drivers/s390/net/ctcm_fsms.

[PATCH net-next 4/7] s390/qeth: constify the disciplines

2020-10-01 Thread Julian Wiedmann
The discipline struct is a fixed group of function pointers. So declare the L2 and L3 disciplines as constant. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h| 6 +++--- drivers/s390/net/qeth_l2_main.c | 2 +- drivers/s390/net/qeth_l3_main.c | 2 +- 3 files changed, 5

[PATCH net-next 6/7] s390/qeth: static checker cleanups

2020-10-01 Thread Julian Wiedmann
- Add/delete some blanks, white spaces and braces. - Fix misindentations. - Adjust a deprecated header include, and htons() conversion. - Remove extra 'return' statements. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 7 --- drivers/s390/net/qeth_core_m

[PATCH net-next 3/7] s390/qeth: allow configuration of TX queues for OSA devices

2020-10-01 Thread Julian Wiedmann
ith a minimal number of TX queues for compatibility reasons. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 18 + drivers/s390/net/qeth_core_main.c | 32 --- drivers/s390/net/qeth_core_sys.c | 4 +++- drivers/s390/net/qeth_etht

[PATCH net-next 2/7] s390/qeth: de-magic the QIB parm area

2020-10-01 Thread Julian Wiedmann
Use a proper struct, and only program the QIB extensions for devices where they are supported. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 11 ++ drivers/s390/net/qeth_core_main.c | 65 ++- 2 files changed, 41 insertions(+), 35

[PATCH net-next 1/7] s390/qeth: keep track of wanted TX queues

2020-10-01 Thread Julian Wiedmann
we can't re-enable the actually expected number of TX queues later because we lost the needed information. So keep track of the wanted TX queues (on initial setup, and whenever its changed via .set_channels), and later use that information when re-enabling the netdevice. Signed-off-by

[PATCH net-next 0/7] s390/net: updates 2020-10-01

2020-10-01 Thread Julian Wiedmann
cleanups. (Even one for ctcm!) Thanks, Julian Julian Wiedmann (6): s390/qeth: keep track of wanted TX queues s390/qeth: de-magic the QIB parm area s390/qeth: allow configuration of TX queues for OSA devices s390/qeth: constify the disciplines s390/qeth: use netdev_name() s390/qeth: stati

Re: [PATCH net-next 3/9] s390/qeth: clean up string ops in qeth_l3_parse_ipatoe()

2020-09-23 Thread Julian Wiedmann
On 23.09.20 12:55, David Laight wrote: > From: Julian Wiedmann >> Sent: 23 September 2020 09:37 >> >> Indicate the max number of to-be-parsed characters, and avoid copying >> the address sub-string. >> >> Signed-off-by: Julian Wiedmann >>

[PATCH net-next 0/9] s390/qeth: updates 2020-09-23

2020-09-23 Thread Julian Wiedmann
. Thanks, Julian Julian Wiedmann (9): s390/qeth: don't init refcount twice for mcast IPs s390/qeth: relax locking for ipato config data s390/qeth: clean up string ops in qeth_l3_parse_ipatoe() s390/qeth: replace deprecated simple_stroul() s390/qeth: tighten ucast IP locking s39

[PATCH net-next 2/9] s390/qeth: relax locking for ipato config data

2020-09-23 Thread Julian Wiedmann
onger needed. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h| 7 +-- drivers/s390/net/qeth_l3_main.c | 4 drivers/s390/net/qeth_l3_sys.c | 22 +++--- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/drivers/s390/net/qeth_core.h b/driv

[PATCH net-next 7/9] s390/qeth: consolidate online code

2020-09-23 Thread Julian Wiedmann
Move duplicated code from the disciplines into the core path. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 6 + drivers/s390/net/qeth_core_main.c | 41 --- drivers/s390/net/qeth_l2_main.c | 20 +-- drivers/s390/net

[PATCH net-next 4/9] s390/qeth: replace deprecated simple_stroul()

2020-09-23 Thread Julian Wiedmann
Convert the remaining occurences in sysfs code to kstrtouint(). While at it move some input parsing out of locked sections, replace an open-coded clamp() and remove some unnecessary run-time checks for ipatoe->mask_bits that are already enforced when creating the object. Signed-off-by: Jul

[PATCH net-next 1/9] s390/qeth: don't init refcount twice for mcast IPs

2020-09-23 Thread Julian Wiedmann
mcast IP objects are allocated within qeth_l3_add_mcast_rtnl(), with .ref_counter already set to 1 via qeth_l3_init_ipaddr(). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net

[PATCH net-next 6/9] s390/qeth: cancel cmds earlier during teardown

2020-09-23 Thread Julian Wiedmann
step a little earlier into the teardown sequence. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 1 - drivers/s390/net/qeth_core_main.c | 6 -- drivers/s390/net/qeth_l2_main.c | 4 +--- drivers/s390/net/qeth_l3_main.c | 1 - 4 files changed, 5 insertions(+), 7

[PATCH net-next 9/9] s390/qeth: remove forward declarations in L2 code

2020-09-23 Thread Julian Wiedmann
Shuffle some code around (primarily all the discipline-related stuff) to get rid of all the unnecessary forward declarations. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l2.h | 7 + drivers/s390/net/qeth_l2_main.c | 378 +++- 2 files changed, 188

[PATCH net-next 5/9] s390/qeth: tighten ucast IP locking

2020-09-23 Thread Julian Wiedmann
in mind, we can now drop the conf_mutex from the qeth_l3_modify_rxip_vipa() wrapper. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_main.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c

[PATCH net-next 8/9] s390/qeth: consolidate teardown code

2020-09-23 Thread Julian Wiedmann
them to the common qeth_set_offline(). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 4 --- drivers/s390/net/qeth_core_main.c | 24 ++- drivers/s390/net/qeth_l2_main.c | 50 +++ drivers/s390/net/qeth_l3_main.c | 46

[PATCH net-next 3/9] s390/qeth: clean up string ops in qeth_l3_parse_ipatoe()

2020-09-23 Thread Julian Wiedmann
Indicate the max number of to-be-parsed characters, and avoid copying the address sub-string. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_sys.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/drivers/s390/net/qeth_l3_sys.c b

[PATCH net-next 4/8] s390/qeth: Translate address events into switchdev notifiers

2020-09-10 Thread Julian Wiedmann
can be used in the bridge. The card reports all MACs that are in its FDB, but we must not pass on MACs that are registered for this interface. Signed-off-by: Alexandra Winter Reviewed-by: Julian Wiedmann Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h| 1 + drivers/s390

[PATCH net-next 8/8] s390/qeth: implement ndo_bridge_setlink for learning_sync

2020-09-10 Thread Julian Wiedmann
n be attached to other NICs with different properties. 2) We want a means to enable this notification explicitly. There may be cases where a bridgeport is set to 'learning', but we do not want to enable the notification. Signed-off-by: Alexandra Winter Reviewed-by: Julian Wiedmann Sign

  1   2   3   4   5   6   7   >