[PATCH net-next v4 0/2] Dissect PTP L2 packet header

2021-01-12 Thread Eran Ben Elisha
Hi Jakub, Dave, This series adds support for dissecting PTP L2 packet header (EtherType 0x88F7). For packet header dissecting, skb->protocol is needed. Add protocol parsing operation to vlan ops, to guarantee skb->protocol is set, as EtherType 0x88F7 occasionally follows a vlan header. Changelog

[PATCH net-next v4 1/2] net: vlan: Add parse protocol header ops

2021-01-12 Thread Eran Ben Elisha
Add parse protocol header ops for vlan device. Before this patch, vlan tagged packet transmitted by af_packet had skb->protocol unset. Some kernel methods (like __skb_flow_dissect()) rely on this missing information for its packet processing. Signed-off-by: Eran Ben Elisha Reviewed-by: Tariq Touk

[PATCH net-next] net: ipa: add config dependency on QCOM_SMEM

2021-01-12 Thread Alex Elder
The IPA driver depends on some SMEM functionality (qcom_smem_init(), qcom_smem_alloc(), and qcom_smem_virt_to_phys()), but this is not reflected in the configuration dependencies. Add a dependency on QCOM_SMEM to avoid attempts to build the IPA driver without SMEM. This avoids a link error for cer

Re: [PATCH net-next v4 1/4] net: phy: mdio-i2c: support I2C MDIO protocol for RollBall SFP modules

2021-01-12 Thread Russell King - ARM Linux admin
On Tue, Jan 12, 2021 at 09:42:56AM +0100, Heiner Kallweit wrote: > On 11.01.2021 06:00, Marek Behún wrote: > > Some multigig SFPs from RollBall and Hilink do not expose functional > > MDIO access to the internal PHY of the SFP via I2C address 0x56 > > (although there seems to be read-only clause 22

Re: [PATCH bpf-next V11 4/7] bpf: add BPF-helper for MTU checking

2021-01-12 Thread Andrii Nakryiko
On Tue, Jan 12, 2021 at 9:49 AM Jesper Dangaard Brouer wrote: > > This BPF-helper bpf_check_mtu() works for both XDP and TC-BPF programs. > > The SKB object is complex and the skb->len value (accessible from > BPF-prog) also include the length of any extra GRO/GSO segments, but > without taking in

Re: [PATCH net-next 4/4] tcp: remove limit on initial receive window

2021-01-12 Thread Heath Caldwell
On 2021-01-12 18:05 (+0100), Eric Dumazet wrote: > On Tue, Jan 12, 2021 at 5:02 PM Heath Caldwell wrote: > > > > On 2021-01-12 09:30 (+0100), Eric Dumazet wrote: > > > I think the whole patch series is an attempt to badly break TCP stack. > > > > Can you explain the concern that you have about h

Re: [PATCH v2] netdevice.7: Update documentation for SIOCGIFADDR SIOCSIFADDR SIOCDIFADDR

2021-01-12 Thread Pali Rohár
On Sunday 10 January 2021 20:57:50 Alejandro Colomar (man-pages) wrote: > [ CC += netdev ] > > On 1/10/21 5:38 PM, Pali Rohár wrote: > > On Saturday 02 January 2021 19:39:52 Pali Rohár wrote: > >> Also add description for struct in6_ifreq which is used for IPv6 addresses. > >> > >> SIOCSIFADDR and

[PATCH] tcp: keepalive fixes

2021-01-12 Thread Enke Chen
From: Enke Chen In this patch two issues with TCP keepalives are fixed: 1) TCP keepalive does not timeout when there are data waiting to be delivered and then the connection got broken. The TCP keepalive timeout is not evaluated in that condition. The fix is to remove the code that pre

Re: [PATCH bpf-next 2/2] selftests: bpf: Add a new test for bare tracepoints

2021-01-12 Thread Qais Yousef
On 01/11/21 23:26, Andrii Nakryiko wrote: > On Mon, Jan 11, 2021 at 10:20 AM Qais Yousef wrote: > > > > Reuse module_attach infrastructure to add a new bare tracepoint to check > > we can attach to it as a raw tracepoint. > > > > Signed-off-by: Qais Yousef > > --- > > > > Andrii > > > > I was get

[PATCH net-next 2/4] dt-bindings: net: remove modem-remoteproc property

2021-01-12 Thread Alex Elder
The IPA driver uses the remoteproc SSR notifier now, rather than the temporary IPA notification system used initially. As a result it no longer needs a property identifying the modem subsystem DT node. Use GIC_SPI rather than 0 in the example interrupt definition. Signed-off-by: Alex Elder ---

[PATCH net-next 1/4] net: ipa: remove a remoteproc dependency

2021-01-12 Thread Alex Elder
The IPA driver currently requires a DT property to be defined whose value is the phandle for the modem subsystem. This was needed to look up a remoteproc structure pointer used when registering for notifications in the original IPA notification mechanism. Remoteproc provides a more generic SSR no

[PATCH net-next 3/4] arm64: dts: qcom: sc7180: kill IPA modem-remoteproc property

2021-01-12 Thread Alex Elder
The "modem-remoteproc" property is no longer required for the IPA driver, so get rid of it. Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 2

[PATCH net-next 4/4] arm64: dts: qcom: sdm845: kill IPA modem-remoteproc property

2021-01-12 Thread Alex Elder
The "modem-remoteproc" property is no longer required for the IPA driver, so get rid of it. Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index b

[PATCH net-next 0/4] net: ipa: remove a build dependency

2021-01-12 Thread Alex Elder
Unlike the original (temporary) IPA notification mechanism, the generic remoteproc SSR notification code does not require the IPA driver to maintain a pointer to the modem subsystem remoteproc structure. The IPA driver was converted to use the newer SSR notifiers, but the specification and use of

Re: [PATCH bpf-next V11 7/7] bpf/selftests: tests using bpf_check_mtu BPF-helper

2021-01-12 Thread Andrii Nakryiko
On Tue, Jan 12, 2021 at 9:49 AM Jesper Dangaard Brouer wrote: > > Adding selftest for BPF-helper bpf_check_mtu(). Making sure > it can be used from both XDP and TC. > > V11: > - Addresse nitpicks from Andrii Nakryiko > > V10: > - Remove errno non-zero test in CHECK_ATTR() > - Addresse comments

Re: [PATCH v1 2/2] sfp: add support for 100 base-x SFPs

2021-01-12 Thread Bjarni Jonasson
On Mon, 2021-01-11 at 14:22 +, Russell King - ARM Linux admin wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On Mon, Jan 11, 2021 at 02:06:57PM +0100, Bjarni Jonasson wrote: > > Add support for 100Base-FX, 100Base-LX, 100Base-PX and 10

Re: [PATCH v1 1/2] net: phy: Add 100 base-x mode

2021-01-12 Thread Bjarni Jonasson
On Mon, 2021-01-11 at 16:47 +, Russell King - ARM Linux admin wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On Mon, Jan 11, 2021 at 02:06:56PM +0100, Bjarni Jonasson wrote: > > Sparx-5 supports this mode and it is missing in the PHY c

Re: [PATCH v1 1/2] net: phy: Add 100 base-x mode

2021-01-12 Thread Bjarni Jonasson
On Mon, 2021-01-11 at 20:37 +0100, Michał Mirosław wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > pon., 11 sty 2021 o 14:54 Bjarni Jonasson > napisał(a): > > Sparx-5 supports this mode and it is missing in the PHY core. > > > > Signed-of

Re: [RFC PATCH 0/7] Support for virtio-net hash reporting

2021-01-12 Thread Yuri Benditovich
Sorry for misunderstanding, I'll resend _all_ the patches to all the maintainers and copy existing comments for further discussion On Tue, Jan 5, 2021 at 7:21 PM Willem de Bruijn wrote: > > On Tue, Jan 5, 2021 at 8:12 AM Yuri Benditovich > wrote: > > > > Existing TUN module is able to use provid

[RFC PATCH 0/7] Support for virtio-net hash reporting

2021-01-12 Thread Yuri Benditovich
Existing TUN module is able to use provided "steering eBPF" to calculate per-packet hash and derive the destination queue to place the packet to. The eBPF uses mapped configuration data containing a key for hash calculation and indirection table with array of queues' indices. This series of patche

[RFC PATCH 3/7] tun: allow use of BPF_PROG_TYPE_SCHED_CLS program type

2021-01-12 Thread Yuri Benditovich
This program type can set skb hash value. It will be useful when the tun will support hash reporting feature if virtio-net. Signed-off-by: Yuri Benditovich --- drivers/net/tun.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 7959b5c2d11f..455f7a

[RFC PATCH 2/7] vhost: support for hash report virtio-net feature

2021-01-12 Thread Yuri Benditovich
According to the virtio specification if VIRTIO_NET_F_HASH_REPORT feature acked the virtio-net header is extended to hold the hash value and hash report type. Signed-off-by: Yuri Benditovich --- drivers/vhost/net.c | 37 + 1 file changed, 29 insertions(+), 8 d

[RFC PATCH 4/7] tun: free bpf_program by bpf_prog_put instead of bpf_prog_destroy

2021-01-12 Thread Yuri Benditovich
The module never creates the bpf program with bpf_prog_create so it shouldn't free it with bpf_prog_destroy. The program is obtained by bpf_prog_get and should be freed by bpf_prog_put. For BPF_PROG_TYPE_SOCKET_FILTER both methods do the same but for other program types they don't. Signed-off-by:

[RFC PATCH 1/7] skbuff: define field for hash report type

2021-01-12 Thread Yuri Benditovich
Used by virtio-net receive side scaling Signed-off-by: Yuri Benditovich --- include/linux/skbuff.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 416bf95cd5f2..36cf40ec0259 100644 --- a/include/linux/skbuff.h +++ b/

[RFC PATCH 5/7] tun: add ioctl code TUNSETHASHPOPULATION

2021-01-12 Thread Yuri Benditovich
User mode program calls this ioctl before loading of BPF program to inform the tun that the BPF program has extended functionality, i.e. sets hash value and returns the virtqueue number in the lower 16 bits and the type of the hash report in the upper 16 bits. Signed-off-by: Yuri Benditovich ---

<    1   2   3   4   5