[PATCH net-next] net: ipv6: addrconf: Add accept_ra_prefix_route.

2021-03-10 Thread Subash Abhinov Kasiviswanathan
was not sufficient as kernel was adding back the route. Defaults to 1 as to not break existing behavior. Signed-off-by: Subash Abhinov Kasiviswanathan --- Documentation/networking/ip-sysctl.rst | 10 ++ include/linux/ipv6.h | 1 + include/uapi/linux/ipv6.h

[PATCH net-next v2] net: qmi_wwan: Add pass through mode

2021-01-24 Thread Subash Abhinov Kasiviswanathan
enabled. Userspace can use pass through mode in conjunction with rmnet driver through the following steps- 1. Enable raw ip mode on qmi_wwan device 2. Enable pass through mode on qmi_wwan device 3. Create a rmnet device with qmi_wwan device as real device using netlink Signed-off-by: Subash Abhinov

[PATCH net-next] net: qualcomm: rmnet: Update rmnet device MTU based on real device

2020-12-09 Thread Subash Abhinov Kasiviswanathan
devices are created and updated and during MTU updates of both the rmnet and real device. Additionally, rmnet devices now have a default MTU configured which accounts for the real device MTU and the headroom based on the data format. Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov

[PATCH net] net: qualcomm: rmnet: Fix incorrect receive packet handling during cleanup

2020-11-13 Thread Subash Abhinov Kasiviswanathan
__netif_receive_skb+0x50/0x17c process_backlog+0x15c/0x1b8 napi_poll+0x88/0x284 net_rx_action+0xbc/0x23c __do_softirq+0x20c/0x48c Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation") Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiv

[PATCH net] dev: Defer free of skbs in flush_backlog

2020-07-23 Thread Subash Abhinov Kasiviswanathan
IRQs are disabled when freeing skbs in input queue. Use the IRQ safe variant to free skbs here. Fixes: 145dd5f9c88f ("net: flush the softnet backlog in process context") Signed-off-by: Subash Abhinov Kasiviswanathan --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: Crash when receiving FIN-ACK in TCP_FIN_WAIT1 state

2019-10-21 Thread Subash Abhinov Kasiviswanathan
Interesting! As tcp_input.c summarizes, "packets_out is SND.NXT-SND.UNA counted in packets". In the normal operation of a socket, tp->packets_out should not be 0 if any of those other fields are non-zero. The tcp_write_queue_purge() function sets packets_out to 0: https://git.kernel.org/pub/scm

Re: Crash when receiving FIN-ACK in TCP_FIN_WAIT1 state

2019-10-21 Thread Subash Abhinov Kasiviswanathan
Please give us a pointer to the exact git tree and sha1. I do not analyze TCP stack problems without an exact starting point, or at least a crystal ball, which I do not have. Hi Eric We are at this commit - Merge 4.19.75 into android-4.19-q. https://android.googlesource.com/kernel/common/+/cf

Re: Crash when receiving FIN-ACK in TCP_FIN_WAIT1 state

2019-10-20 Thread Subash Abhinov Kasiviswanathan
FIN-WAIT1 just means the local application has called close() or shutdown() to shut down the sending direction of the socket, and the local TCP stack has sent a FIN, and is waiting to receive a FIN and an ACK from the other side (in either order, or simultaneously). The ASCII art state transition

Re: Crash when receiving FIN-ACK in TCP_FIN_WAIT1 state

2019-10-20 Thread Subash Abhinov Kasiviswanathan
Hmm. Random related thought while searching for a possible cause: I wonder if tcp_write_queue_purge() should clear tp->highest_sack (and possibly tp->sacked_out)? The tcp_write_queue_purge() code is careful to call tcp_clear_all_retrans_hints(tcp_sk(sk)) and I would imagine that similar considera

Crash when receiving FIN-ACK in TCP_FIN_WAIT1 state

2019-10-20 Thread Subash Abhinov Kasiviswanathan
We are seeing a crash in the TCP ACK codepath often in our regression racks with an ARM64 device with 4.19 based kernel. It appears that the tp->highest_ack is invalid when being accessed when a FIN-ACK is received. In all the instances of the crash, the tcp socket is in TCP_FIN_WAIT1 state. [

Re: [PATCH RFC v3 2/5] net: Add NETIF_F_GRO_LIST feature

2019-09-18 Thread Subash Abhinov Kasiviswanathan
On 2019-09-18 10:10, Willem de Bruijn wrote: On Wed, Sep 18, 2019 at 3:25 AM Steffen Klassert wrote: This adds a new NETIF_F_GRO_LIST feature flag. I will be used to configure listfyed GRO what will be implemented with some followup paches. This should probably simultaneously introduce SKB_G

Re: [PATCH RFC v3 0/5] Support fraglist GRO/GSO

2019-09-18 Thread Subash Abhinov Kasiviswanathan
On 2019-09-18 10:58, Marcelo Ricardo Leitner wrote: On Wed, Sep 18, 2019 at 12:17:08PM -0400, Willem de Bruijn wrote: On Wed, Sep 18, 2019 at 3:25 AM Steffen Klassert wrote: > > This patchset adds support to do GRO/GSO by chaining packets > of the same flow at the SKB frag_list pointer. This av

[PATCH net] net: Fix null de-reference of device refcount

2019-09-10 Thread Subash Abhinov Kasiviswanathan
6f ("[NET]: Fix free_netdev on register_netdev failure.") Cc: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- net/core/dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index 49589ed..c7463c9 100644 --- a/net/core/dev.c +++ b/ne

Re: [PATCH net] dev: Delay the free of the percpu refcount

2019-09-04 Thread Subash Abhinov Kasiviswanathan
On 2019-08-30 15:03, Subash Abhinov Kasiviswanathan wrote: This looks bogus. Whatever layer tries to access dev refcnt after free_netdev() has been called is buggy. I would rather trap early and fix the root cause. Untested patch : diff --git a/include/linux/netdevice.h b/include/linux

Re: [PATCH net-next] net: Fail explicit bind to local reserved ports

2019-09-03 Thread Subash Abhinov Kasiviswanathan
I don't know how happy I am about this. Whatever sets up the transparent proxy business can block any attempt to communicate over these ports. Also, protocols like SCTP need the new handling too. Hi David The purpose of this patch was to allow the transparent proxy application to block the s

Re: [PATCH net] dev: Delay the free of the percpu refcount

2019-08-30 Thread Subash Abhinov Kasiviswanathan
This looks bogus. Whatever layer tries to access dev refcnt after free_netdev() has been called is buggy. I would rather trap early and fix the root cause. Untested patch : diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index b5d28dadf964..8080f1305417 100644 --- a/include/

[PATCH net] dev: Delay the free of the percpu refcount

2019-08-29 Thread Subash Abhinov Kasiviswanathan
in free_netdev() before the last reference was dropped. Fix this by freeing the memory after all references are dropped and before the dev memory itself is freed. Fixes: 29b4433d991c ("net: percpu net_device refcount") Cc: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --

[PATCH net-next] net: Fail explicit bind to local reserved ports

2019-08-29 Thread Subash Abhinov Kasiviswanathan
;. Default value is 1 which preserves the existing behavior. Setting the value to 0 will prevent userspace applications from binding to these ports even when they are explicitly requested. Cc: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- Documentation/networking/ip-sysc

[PATCH net] net: qualcomm: rmnet: Fix incorrect UL checksum offload logic

2019-07-25 Thread Subash Abhinov Kasiviswanathan
") Cc: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 13 + include/linux/if_rmnet.h | 4 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/net/etherne

[PATCH net-next] net: qualcomm: rmnet: Move common struct definitions to include

2019-05-22 Thread Subash Abhinov Kasiviswanathan
wwan. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 25 +-- include/linux/if_rmnet.h| 55 + 2 files changed, 56 insertions(+), 24 deletions(-) create mode 100644 include/linux/if_rmnet.h

Re: [PATCH RFC] net: qualcomm: rmnet: Move common struct definitions to include

2019-05-21 Thread Subash Abhinov Kasiviswanathan
I think I'd just duplicate the structure definitions then, to avoid having the bitfield definitions in a common header and using them in the new driver. Doing would allow each driver to represent the bits as suitable, at the cost of some duplication and confusion. Confusion, because it doesn

[PATCH RFC] net: qualcomm: rmnet: Move common struct definitions to include

2019-05-21 Thread Subash Abhinov Kasiviswanathan
wwan. Signed-off-by: Subash Abhinov Kasiviswanathan --- This patch is an alternate implementation of the series posted by Elder. This eliminates the changes needed in the rmnet packet parsing while maintaining portability. --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 25 +-- inc

Re: cellular modem driver APIs

2019-04-14 Thread Subash Abhinov Kasiviswanathan
Currently, iproute2 can be used to add the underlying dev as real_dev and create rmnet links over it (ip link add link rmnet_ipa0 name rmnet0 type rmnet mux_id 1). Would this continue to work if - 1. the rmnet library were to be included directly as part of the underlying driver itself 2. there

Re: cellular modem driver APIs

2019-04-10 Thread Subash Abhinov Kasiviswanathan
OK. But it means that you have a very specific encapsulation mode on top of the "netdev". I'm still not convinced we should actually make that a netdev, but I'll elaborate elsewhere. I recall Daniele also managed to get rmnet working with qmi_wwan (with an additional patch in which I had made q

Re: cellular modem driver APIs

2019-04-04 Thread Subash Abhinov Kasiviswanathan
On 2019-04-04 14:38, Johannes Berg wrote: Hi, The normal mode of operation of rmnet is using the rmnet netdevices in an embedded device. Sure. Can you say what driver this would typically live on top of? I'm actually a bit surprised to find out this isn't really a driver :-) This needs a p

Re: cellular modem driver APIs

2019-04-04 Thread Subash Abhinov Kasiviswanathan
On 2019-04-04 09:52, Dan Williams wrote: On Thu, 2019-04-04 at 11:00 +0200, Johannes Berg wrote: Hi, > Thanks a lot for doing this! Being responsible for most of the > issues > you point out, I can only say that you have my full support if you > want > to change any of it. :-) > My pathetic

Re: [PATCH net-next] net: qualcomm: rmnet: Remove set but not used variable 'cmd'

2018-11-28 Thread Subash Abhinov Kasiviswanathan
8 mux_id; int r; mux_id = RMNET_MAP_GET_MUX_ID(skb); - cmd = RMNET_MAP_GET_CMD_START(skb); if (mux_id >= RMNET_MAX_LOGICAL_EP) { kfree_skb(skb); Thanks for cleaning these up. Acked-by: Subash Abhinov Kasiviswanathan -- Qualcomm Innovation Center, Inc. is a memb

[PATCH net] net: qualcomm: rmnet: Fix incorrect assignment of real_dev

2018-11-09 Thread Subash Abhinov Kasiviswanathan
6c8 <2> rtnetlink_rcv_msg+0x1dc/0x328 <2> netlink_rcv_skb+0xac/0x118 <2> rtnetlink_rcv+0x24/0x30 <2> netlink_unicast+0x158/0x1f0 <2> netlink_sendmsg+0x32c/0x338 <2> sock_sendmsg+0x44/0x60 <2> SyS_sendto+0x150/0x1ac <2> el0_svc_naked+0x3

Re: [RFC PATCH v3 04/10] ip: factor out protocol delivery helper

2018-10-31 Thread Subash Abhinov Kasiviswanathan
On 2018-10-30 11:24, Paolo Abeni wrote: So that we can re-use it at the UDP lavel in a later patch Hi Paolo Minor queries - Should it be "level" instead of "lavel"? Similar comment for the ipv6 patch as well. Signed-off-by: Paolo Abeni --- net/ipv4/ip_input.c | 73 ++--

Re: [RFC PATCH v2 06/10] udp: cope with UDP GRO packet misdirection

2018-10-23 Thread Subash Abhinov Kasiviswanathan
Is the "likely" required here? Not required, but currently helpful IMHO, as we should hit the above only on unlikey and really unwonted configuration. Note that only SKB_GSO_UDP_L4 GSO packets will not match the above likely condition. HW can coalesce all incoming streams of UDP and may not kn

Re: [RFC PATCH v2 06/10] udp: cope with UDP GRO packet misdirection

2018-10-22 Thread Subash Abhinov Kasiviswanathan
On 2018-10-19 08:25, Paolo Abeni wrote: In some scenarios, the GRO engine can assemble an UDP GRO packet that ultimately lands on a non GRO-enabled socket. This patch tries to address the issue explicitly checking for the UDP socket features before enqueuing the packet, and eventually segmenting

[PATCH net 3/3] net: qualcomm: rmnet: Fix incorrect allocation flag in receive path

2018-10-02 Thread Subash Abhinov Kasiviswanathan
x40 [<6027bbcb>] __netif_receive_skb+0x24/0x8e Fixes: 74692caf1b0b ("net: qualcomm: rmnet: Process packets over ethernet") Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 2 +- 1 file chang

[PATCH net 1/3] net: qualcomm: rmnet: Skip processing loopback packets

2018-10-02 Thread Subash Abhinov Kasiviswanathan
Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_handle

[PATCH net 2/3] net: qualcomm: rmnet: Fix incorrect allocation flag in transmit

2018-10-02 Thread Subash Abhinov Kasiviswanathan
+0xa4/0x198 [32806.185125] __qdisc_run+0x1f8/0x310 [32806.188803] net_tx_action+0x23c/0x26c [32806.192655] __do_softirq+0x220/0x408 [32806.196420] do_softirq+0x4c/0x70 Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation") Signed-off-by: Suba

[PATCH net 0/3] net: qualcomm: rmnet: Updates 2018-10-02

2018-10-02 Thread Subash Abhinov Kasiviswanathan
This series is a set of small fixes for rmnet driver Patch 1 is a fix for a scenario reported by syzkaller Patch 2 & 3 are fixes for incorrect allocation flags Sean Tranchetti (1): net: qualcomm: rmnet: Skip processing loopback packets Subash Abhinov Kasiviswanathan (2): net: qual

Re: [PATCH net-next RFC 7/8] udp: gro behind static key

2018-09-14 Thread Subash Abhinov Kasiviswanathan
On 2018-09-14 11:59, Willem de Bruijn wrote: From: Willem de Bruijn Avoid the socket lookup cost in udp_gro_receive if no socket has a gro callback configured. Signed-off-by: Willem de Bruijn diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c index 4f6aa95a9b12..f44fe328aa0f 100644

Re: [PATCH net-next RFC 5/8] net: deconstify net_offload

2018-09-14 Thread Subash Abhinov Kasiviswanathan
On 2018-09-14 11:59, Willem de Bruijn wrote: From: Willem de Bruijn With configurable gro, the flags field in net_offloads may be changed. Remove the const keyword. This is a noop otherwise. Signed-off-by: Willem de Bruijn diff --git a/net/sctp/offload.c b/net/sctp/offload.c index 123e9f2dc2

Re: Crash due to destroying TCP request sockets using SOCK_DESTROY

2018-07-06 Thread Subash Abhinov Kasiviswanathan
Looks like for a TCP_NEW_SYN_RECV socket, sock_diag_destroy essentially ends up doing: struct request_sock *req = inet_reqsk(sk); local_bh_disable(); inet_csk_reqsk_queue_drop_and_put(req->rsk_listener,

Crash due to destroying TCP request sockets using SOCK_DESTROY

2018-07-05 Thread Subash Abhinov Kasiviswanathan
We are seeing a crash on an ARM64 device with Android 4.14 based kernel. From the call stack, a TCP socket is being destroyed using netlink_diag. The memory dump showed that the socket was an inet request socket (in state TCP_NEW_SYN_RECV) with refcount of 0. The crash seems to have happened dur

Re: [PATCH net-next] net: qmi_wwan: Add pass through mode

2018-06-27 Thread Subash Abhinov Kasiviswanathan
The concepte looks fine to me, but I have a few comments to the implementation below. First: I missed the last part of the discussion around automatic detection of passthrough mode. Could you give us a short summary of the alternatives you tried and why they were dropped? Hi Bjørn The other

[PATCH net-next] net: qmi_wwan: Add pass through mode

2018-06-26 Thread Subash Abhinov Kasiviswanathan
Pass through mode is to allow packets in MAP format to be passed on to the stack. rmnet driver can be used to process and demultiplex these packets. Note that pass through mode can be enabled when the device is in raw ip mode only. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net

[PATCH iproute2-next v3] ip-xfrm: Add support for OUTPUT_MARK

2018-06-15 Thread Subash Abhinov Kasiviswanathan
ror as mentioned by Lorenzo. Keep mark and output-mark on the same line and add man page info as mentioned by David. Signed-off-by: Subash Abhinov Kasiviswanathan --- ip/ipxfrm.c| 17 - ip/xfrm_state.c| 9 + man/man8/ip-xfrm.8 | 11 +++ 3 files change

Re: [PATCH iproute2-next v2] ip-xfrm: Add support for OUTPUT_MARK

2018-06-13 Thread Subash Abhinov Kasiviswanathan
any reason to put output-mark on its own line? Why not mark 0x1/0x3 output-mark 0x2 Hi David I will move it to the same line in v3. is the documentation clear on the difference between mark and output-mark? Lorenzo has described the differences in detail in the kernel c

Re: [PATCH 1/1] ip: add rmnet initial support

2018-06-12 Thread Subash Abhinov Kasiviswanathan
+ +static void print_explain(FILE *f) +{ + fprintf(f, + "Usage: ... rmnet mux_id MUXID\n" + "\n" + "MUXID := 1-127\n" + ); +} Hi Daniele This range can be from 1-254. + +static void explain(void) +{ + print_explain(stderr); +} + +sta

Re: [PATCH iproute2-next] ip-xfrm: Add support for OUTPUT_MARK

2018-06-12 Thread Subash Abhinov Kasiviswanathan
Have you considered putting this earlier up in the output, where the mark is printed as well? + if (tb[XFRMA_OUTPUT_MARK]) { + __u32 output_mark = rta_getattr_u32(tb[XFRMA_OUTPUT_MARK]); + + fprintf(fp, "\toutput-mark 0x%x %s", output_mark, _SL_); + }

[PATCH iproute2-next v2] ip-xfrm: Add support for OUTPUT_MARK

2018-06-12 Thread Subash Abhinov Kasiviswanathan
v2: Moved the XFRMA_OUTPUT_MARK print after XFRMA_MARK in xfrm_xfrma_print() as mentioned by Lorenzo Signed-off-by: Subash Abhinov Kasiviswanathan --- ip/ipxfrm.c| 6 ++ ip/xfrm_state.c| 9 + man/man8/ip-xfrm.8 | 2 ++ 3 files changed, 17 insertions(+) diff --git a/ip/ipxfrm.c

[PATCH iproute2-next] ip-xfrm: Add support for OUTPUT_MARK

2018-06-11 Thread Subash Abhinov Kasiviswanathan
ode tunnel replay-window 0 flag af-unspec auth-trunc xcbc(aes) 0x3ed0af408cf5dcbf5d5d9a5fa806b211 96 enc cbc(aes) 0x3ed0af408cf5dcbf5d5d9a5fa806b233 anti-replay context: seq 0x0, oseq 0x0, bitmap 0x output-mark 0x2 Signed-off-by: Subash Abhinov Kasiv

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-11 Thread Subash Abhinov Kasiviswanathan
both patches work properly for me. Maybe it could be helpful in the first patch to add a print when pass-through setting fails if raw-ip has not been set, just to let the user know what is happening. Thanks for testing Daniele. I can add an error message there when pass through mode setting fa

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-09 Thread Subash Abhinov Kasiviswanathan
f7a2b90948da47ade1b345eddb37b721f5ab65f4 Mon Sep 17 00:00:00 2001 From: Subash Abhinov Kasiviswanathan Date: Sat, 9 Jun 2018 11:14:22 -0600 Subject: [PATCH] net: qmi_wwan: Allow packets to pass through to rmnet Pass through mode is to allow packets in MAP format to be passed on to rmnet if the rmnet rx handler is attached to

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-08 Thread Subash Abhinov Kasiviswanathan
er of Code Aurora Forum, a Linux Foundation Collaborative ProjectFrom bccfae3707af1be671fe55ea63123438f2dc38a8 Mon Sep 17 00:00:00 2001 From: Subash Abhinov Kasiviswanathan Date: Fri, 8 Jun 2018 19:53:08 -0600 Subject: [PATCH] net: qmi_wwan: Add pass through mode Pass through mode is to allow pack

Re: [PATCH net-next] net: ipv6: Generate random IID for addresses on RAWIP devices

2018-06-08 Thread Subash Abhinov Kasiviswanathan
Actually, I think this is fine. RFC 7136 clarified this, and says: == Thus, we can conclude that the value of the "u" bit in IIDs has no particular meaning. In the case of an IID created from a MAC address according to RFC 4291, its value is determined by the MAC address, but t

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-08 Thread Subash Abhinov Kasiviswanathan
I followed Dan's advice and prepared a very basic test patch (attached) for testing it through ip link. Basically things seem to be properly working with qmicli, but I needed to modify a bit qmi_wwan, so I'm adding Bjørn that maybe can help. Bjørn, I'm trying to add support to rmnet in qmi_wwan

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-05 Thread Subash Abhinov Kasiviswanathan
On 2018-06-05 08:54, Dan Williams wrote: On Tue, 2018-06-05 at 11:38 +0200, Daniele Palmas wrote: Hi, 2018-02-21 20:47 GMT+01:00 Subash Abhinov Kasiviswanathan : > On 2018-02-21 04:38, Daniele Palmas wrote: > > > > Hello, > > > > in rmnet kernel documentation I rea

[PATCH net-next v2] net: qualcomm: rmnet: Fix use after free while sending command ack

2018-06-04 Thread Subash Abhinov Kasiviswanathan
itial implementation") Signed-off-by: Subash Abhinov Kasiviswanathan --- v1->v2: Rebase change on net-next instead as mentioned by David. Also remove an unnecessary variable. --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c | 8 1 file changed, 4 insertions(+), 4 delet

[PATCH net-next v2] net: ipv6: Generate random IID for addresses on RAWIP devices

2018-06-04 Thread Subash Abhinov Kasiviswanathan
RAWIP devices such as rmnet do not have a hardware address and instead require the kernel to generate a random IID for the IPv6 addresses. Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- v1->v2: Yoshfuji suggested to update the I/G and G/L bit. Simi

[PATCH net] net: qualcomm: rmnet: Fix use after free while sending command ack

2018-06-03 Thread Subash Abhinov Kasiviswanathan
by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c index 78fdad

[PATCH net-next] net: ipv6: Generate random IID for addresses on RAWIP devices

2018-06-03 Thread Subash Abhinov Kasiviswanathan
RAWIP devices such as rmnet do not have a hardware address and instead require the kernel to generate a random IID for the temporary addresses. For permanent addresses, the device IID is used along with prefix received. Signed-off-by: Subash Abhinov Kasiviswanathan --- net/ipv6/addrconf.c | 17

[PATCH net-next v2 1/3] net: qualcomm: rmnet: Capture all drops in transmit path

2018-05-15 Thread Subash Abhinov Kasiviswanathan
: Subash Abhinov Kasiviswanathan --- .../net/ethernet/qualcomm/rmnet/rmnet_handlers.c| 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c index 6fcd586

[PATCH net-next v2 0/3] net: qualcomm: rmnet: Updates 2018-05-14

2018-05-15 Thread Subash Abhinov Kasiviswanathan
ine rmnet_ethtool_ops as static as mentioned by kbuild test robot. Subash Abhinov Kasiviswanathan (3): net: qualcomm: rmnet: Capture all drops in transmit path net: qualcomm: rmnet: Add support for ethtool private stats net: qualcomm: rmnet: Remove redundant command check drivers/net/ether

[PATCH net-next v2 2/3] net: qualcomm: rmnet: Add support for ethtool private stats

2018-05-15 Thread Subash Abhinov Kasiviswanathan
network stack. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 13 + .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 64 -- drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c| 51 + 3 files changed

[PATCH net-next v2 3/3] net: qualcomm: rmnet: Remove redundant command check

2018-05-15 Thread Subash Abhinov Kasiviswanathan
The command packet size is already checked once in rmnet_map_deaggregate() for the header, packet and trailer size, so this additional check is not needed. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c | 14 +++--- 1 file

Re: [PATCH net-next 2/3] net: qualcomm: rmnet: Add support for ethtool private stats

2018-05-15 Thread Subash Abhinov Kasiviswanathan
On 2018-05-15 02:41, kbuild test robot wrote: Hi Subash, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Subash-Abhinov-Kasiviswanathan/net-qualcomm-rmnet-Updates-2018-05-14/20180515-115355

[PATCH net-next 3/3] net: qualcomm: rmnet: Remove redundant command check

2018-05-14 Thread Subash Abhinov Kasiviswanathan
The command packet size is already checked once in rmnet_map_deaggregate() for the header, packet and trailer size, so this additional check is not needed. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c | 14 +++--- 1 file

[PATCH net-next 0/3] net: qualcomm: rmnet: Updates 2018-05-14

2018-05-14 Thread Subash Abhinov Kasiviswanathan
This series contains some minor updates for rmnet driver. Patch 1 adds tx_drops counter to more places. Patch 2 adds ethtool private stats support to make it easy to debug the checksum offload path. Patch 3 is a cleanup in command packet processing path. Subash Abhinov Kasiviswanathan (3

[PATCH net-next 1/3] net: qualcomm: rmnet: Capture all drops in transmit path

2018-05-14 Thread Subash Abhinov Kasiviswanathan
: Subash Abhinov Kasiviswanathan --- .../net/ethernet/qualcomm/rmnet/rmnet_handlers.c| 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c index 6fcd586

[PATCH net-next 2/3] net: qualcomm: rmnet: Add support for ethtool private stats

2018-05-14 Thread Subash Abhinov Kasiviswanathan
network stack. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 13 + .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 59 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c| 51 +++ 3 files changed

[PATCH net] net: qualcomm: rmnet: Fix warning seen with fill_info

2018-04-17 Thread Subash Abhinov Kasiviswanathan
/0xec [<6026ceec>] unregister_netdevice_many+0x21/0xa1 [<6027c765>] rtnl_delete_link+0x3e/0x4e [<60280ecb>] rtnl_dellink+0x262/0x29c [<6027c241>] ? rtnl_get_link+0x0/0x3e [<6027f867>] rtnetlink_rcv_msg+0x235/0x274 Fixes: be81a85f5f87 ("net: qualcomm: rmnet: I

Crash due to NULL dereference in tcp_rearm_rto

2018-04-13 Thread Subash Abhinov Kasiviswanathan
We are seeing a warning followed by a crash on an ARM64 device with Android 4.14 based kernel. It looks like both sk->sk_write_queue and sk->sk_send_head are NULL. Since the sk->sk_write_queue is NULL and is dereferenced in tcp_rto_delta_us() to get the skb->skb_mstamp, there is crash observed.

[PATCH net-next v4 1/5] net: qualcomm: rmnet: Fix casting issues

2018-03-21 Thread Subash Abhinov Kasiviswanathan
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:50:18: warning: cast to restricted __be32 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:74:21: warning: cast to restricted __be16 Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 6

[PATCH net-next v4 4/5] net: qualcomm: rmnet: Export mux_id and flags to netlink

2018-03-21 Thread Subash Abhinov Kasiviswanathan
Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 41 +- .../net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 10 +++--- .../ethernet/qualcomm/rmnet/rmnet_map_command.c| 2 +- .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 2 +- .../net

[PATCH net-next v4 0/5] net: qualcomm: rmnet: Updates 2018-03-12

2018-03-21 Thread Subash Abhinov Kasiviswanathan
ttributes as mentioned by David. The rmnet specific flags are also moved to uapi. The netlink updates are done as part of #4 and #5 has the fill_info operation. Subash Abhinov Kasiviswanathan (5): net: qualcomm: rmnet: Fix casting issues net: qualcomm: rmnet: Update copyright year to 2

[PATCH net-next v4 2/5] net: qualcomm: rmnet: Update copyright year to 2018

2018-03-21 Thread Subash Abhinov Kasiviswanathan
Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c| 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h

[PATCH net-next v4 3/5] net: qualcomm: rmnet: Remove unnecessary device assignment

2018-03-21 Thread Subash Abhinov Kasiviswanathan
Device of the de-aggregated skb is correctly assigned after inspecting the mux_id, so remove the assignment in rmnet_map_deaggregate(). Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH net-next v4 5/5] net: qualcomm: rmnet: Implement fill_info

2018-03-21 Thread Subash Abhinov Kasiviswanathan
This is needed to query the mux_id and flags of a rmnet device. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c b

Re: [PATCH net-next v2 0/4] net: qualcomm: rmnet: Updates 2018-03-12

2018-03-14 Thread Subash Abhinov Kasiviswanathan
Please address Joe's feedback and only update the copyright date on files that actually had changes this year. Thank you. Hi David I have fixed that now in v3. However, patchwork is not showing the entire series. It shows only the first patch for some reason even if I search with me as submit

[PATCH net-next v3 4/4] net: qualcomm: rmnet: Implement fill_info

2018-03-14 Thread Subash Abhinov Kasiviswanathan
This is needed to query the mux_id and flags of a rmnet device. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c b

[PATCH net-next v3 2/4] net: qualcomm: rmnet: Update copyright year to 2018

2018-03-14 Thread Subash Abhinov Kasiviswanathan
Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c| 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h

[PATCH net-next v3 1/4] net: qualcomm: rmnet: Fix casting issues

2018-03-14 Thread Subash Abhinov Kasiviswanathan
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:50:18: warning: cast to restricted __be32 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:74:21: warning: cast to restricted __be16 Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 6

[PATCH net-next v3 3/4] net: qualcomm: rmnet: Remove unnecessary device assignment

2018-03-14 Thread Subash Abhinov Kasiviswanathan
Device of the de-aggregated skb is correctly assigned after inspecting the mux_id, so remove the assignment in rmnet_map_deaggregate(). Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH net-next v3 0/4] net: qualcomm: rmnet: Updates 2018-03-12

2018-03-14 Thread Subash Abhinov Kasiviswanathan
is changed to __be types as mentioned by David. v3>-v3: Update copyright in files which actually had changes as mentioned by Joe. Subash Abhinov Kasiviswanathan (4): net: qualcomm: rmnet: Fix casting issues net: qualcomm: rmnet: Update copyright year to 2018 net: qualcomm: rmnet:

Re: [PATCH net-next v2 2/4] net: qualcomm: rmnet: Update copyright year to 2018

2018-03-13 Thread Subash Abhinov Kasiviswanathan
Did any work actually occur on all these files in 2018? $ git log --name-only --since=01-01-2018 drivers/net/ethernet/qualcomm/rmnet/ | \ grep "^drivers" | sort | uniq drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h drivers/net/ethernet/qualc

Re: [PATCH net-next 1/4] net: qualcomm: rmnet: Fix casting issues

2018-03-13 Thread Subash Abhinov Kasiviswanathan
Ummm, if you change pkt_len to be a proper __be16, then you don't need these casts when passing it to ntohs(). Hi David I have fixed this now in v2. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

[PATCH net-next v2 3/4] net: qualcomm: rmnet: Remove unnecessary device assignment

2018-03-13 Thread Subash Abhinov Kasiviswanathan
Device of the de-aggregated skb is correctly assigned after inspecting the mux_id, so remove the assignment in rmnet_map_deaggregate(). Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH net-next v2 2/4] net: qualcomm: rmnet: Update copyright year to 2018

2018-03-13 Thread Subash Abhinov Kasiviswanathan
Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c| 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.h

[PATCH net-next v2 4/4] net: qualcomm: rmnet: Implement fill_info

2018-03-13 Thread Subash Abhinov Kasiviswanathan
This is needed to query the mux_id and flags of a rmnet device. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c b

[PATCH net-next v2 1/4] net: qualcomm: rmnet: Fix casting issues

2018-03-13 Thread Subash Abhinov Kasiviswanathan
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:50:18: warning: cast to restricted __be32 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:74:21: warning: cast to restricted __be16 Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 6

[PATCH net-next v2 0/4] net: qualcomm: rmnet: Updates 2018-03-12

2018-03-13 Thread Subash Abhinov Kasiviswanathan
is changed to __be types as mentioned by David. Subash Abhinov Kasiviswanathan (4): net: qualcomm: rmnet: Fix casting issues net: qualcomm: rmnet: Update copyright year to 2018 net: qualcomm: rmnet: Remove unnecessary device assignment net: qualcomm: rmnet: Implement fill_info drivers/

[PATCH net-next 0/4] net: qualcomm: rmnet: Updates 2018-03-12

2018-03-12 Thread Subash Abhinov Kasiviswanathan
This series contains some minor updates for rmnet driver. Patch 1 contains fixes for sparse warnings. Patch 2 updates the copyright date to 2018. Patch 3 is a cleanup in receive path. Patch 4 has the implementation of the fill_info operation. Subash Abhinov Kasiviswanathan (4): net: qualcomm

[PATCH net-next 1/4] net: qualcomm: rmnet: Fix casting issues

2018-03-12 Thread Subash Abhinov Kasiviswanathan
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:50:18: warning: cast to restricted __be32 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c:74:21: warning: cast to restricted __be16 Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h

[PATCH net-next 3/4] net: qualcomm: rmnet: Remove unnecessary device assignment

2018-03-12 Thread Subash Abhinov Kasiviswanathan
Device of the de-aggregated skb is correctly assigned after inspecting the mux_id, so remove the assignment in rmnet_map_deaggregate(). Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH net-next 2/4] net: qualcomm: rmnet: Update copyright year to 2018

2018-03-12 Thread Subash Abhinov Kasiviswanathan
Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c| 2 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.h

[PATCH net-next 4/4] net: qualcomm: rmnet: Implement fill_info

2018-03-12 Thread Subash Abhinov Kasiviswanathan
This is needed to query the mux_id and flags of a rmnet device. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c b

Re: Qualcomm rmnet driver and qmi_wwan

2018-02-21 Thread Subash Abhinov Kasiviswanathan
On 2018-02-21 04:38, Daniele Palmas wrote: Hello, in rmnet kernel documentation I read: "This driver can be used to register onto any physical network device in IP mode. Physical transports include USB, HSIC, PCIe and IP accelerator." Does this mean that it can be used in association with t

[PATCH net 3/3] net: qualcomm: rmnet: Fix possible null dereference in command processing

2018-02-16 Thread Subash Abhinov Kasiviswanathan
ned-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c index 6bc328f..b0dbca0 10

[PATCH net 1/3] net: qualcomm: rmnet: Fix crash on real dev unregistration

2018-02-16 Thread Subash Abhinov Kasiviswanathan
Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation") Fixes: 60d58f971c10 ("net: qualcomm: rmnet: Implement bridge mode") Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 68 +-

[PATCH net 2/3] net: qualcomm: rmnet: Fix warning seen with 64 bit stats

2018-02-16 Thread Subash Abhinov Kasiviswanathan
[] rtnetlink_rcv+0x34/0x44 [] netlink_unicast+0x1ec/0x294 [] netlink_sendmsg+0x320/0x390 [] sock_sendmsg+0x54/0x60 [] SyS_sendto+0x1a0/0x1e4 [] el0_svc_naked+0x24/0x28 Fixes: 192c4b5d48f2 ("net: qualcomm: rmnet: Add support for 64 bit stats") Signed-off-by: Subash Abhinov Kasiv

[PATCH net 0/3] net: qualcomm: rmnet: Fix issues with CONFIG_DEBUG_PREEMPT enabled

2018-02-16 Thread Subash Abhinov Kasiviswanathan
Patch 1 and 2 fixes issues identified when CONFIG_DEBUG_PREEMPT was enabled. These involve APIs which were called in invalid contexts. Patch 3 is a null derefence fix identified by code inspection. Subash Abhinov Kasiviswanathan (3): net: qualcomm: rmnet: Fix crash on real dev unregistration

[PATCH net-next v3 RESEND 08/10] net: qualcomm: rmnet: Handle command packets with checksum trailer

2018-01-07 Thread Subash Abhinov Kasiviswanathan
When using the MAPv4 packet format in conjunction with MAP commands, a dummy DL checksum trailer will be appended to the packet. Before this packet is sent out as an ACK, the DL checksum trailer needs to be removed. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm

[PATCH net-next v3 RESEND 10/10] net: qualcomm: rmnet: Add support for GSO

2018-01-07 Thread Subash Abhinov Kasiviswanathan
Real devices may support scatter gather(SG), so enable SG on rmnet devices to use GSO. GSO reduces CPU cycles by 20% for a rate of 146Mpbs for a single stream TCP connection. Signed-off-by: Subash Abhinov Kasiviswanathan --- drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 1 + 1 file changed

[PATCH net-next v3 RESEND 05/10] net: qualcomm: rmnet: Set pacing shift

2018-01-07 Thread Subash Abhinov Kasiviswanathan
sk_pacing_shift_update() helper. This value was determined based on experiments with a single stream TCP TX using iperf for a duration of 30s. Pacing shift | Observed data rate (Mbps) 10 | 9 9 | 140 8 | 146 (Max link rate) Signed-off-by: Subash Abhinov Kasiviswanathan

  1   2   3   4   >