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

2018-11-28 Thread Subash Abhinov Kasiviswanathan
= 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 member of Code Aurora Forum, a Linux Foundat

[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-11-01 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

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

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

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

[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

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); +} +

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

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

Re: Qualcomm rmnet driver and qmi_wwan

2018-06-08 Thread Subash Abhinov Kasiviswanathan
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 packets in MAP

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

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

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
-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- .../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

[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
in the network stack. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- 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

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.

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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.

[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
-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- .../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

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

2018-05-14 Thread Subash Abhinov Kasiviswanathan
in the network stack. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- 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

[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

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

[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 <subas...@codeaurora.org> --- drivers/net/et

[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 <subas...@codeaurora.org> --- 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

[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 <subas...@codeaurora.org> --- 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/qu

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 - 1 file chan

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/ethernet/qu

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

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/ethernet/qu

[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 <subas...@codeaurora.org> --- 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/qu

[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 <subas...@codeaurora.org> --- drivers/net/et

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 - 1 file chan

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

2018-03-14 Thread Subash Abhinov Kasiviswanathan
ype 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

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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 - 1 file chan

[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 <subas...@codeaurora.org> --- 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/qu

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/ethernet/qu

[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 <subas...@codeaurora.org> --- drivers/net/et

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

2018-03-13 Thread Subash Abhinov Kasiviswanathan
ype 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 2/4] net: qualcomm: rmnet: Update copyright year to 2018

2018-03-12 Thread Subash Abhinov Kasiviswanathan
Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- 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/qu

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/ethernet/qu

[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 <subas...@codeaurora.org> --- drivers/net/et

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 1 - 1 file chan

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

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

2018-02-16 Thread Subash Abhinov Kasiviswanathan
Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- 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

[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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm

[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 Kasiviswanat

[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 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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm

[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 <subas...@codeaurora.

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

2018-01-07 Thread Subash Abhinov Kasiviswanathan
the 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

[PATCH net-next v3 RESEND 09/10] net: qualcomm: rmnet: Add support for TX checksum offload

2018-01-07 Thread Subash Abhinov Kasiviswanathan
of partial checksum field in transport header. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- .../net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 8 ++ drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h| 2 + .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c

[PATCH net-next v3 RESEND 06/10] net: qualcomm: rmnet: Define the MAPv4 packet formats

2018-01-07 Thread Subash Abhinov Kasiviswanathan
hardware will insert the computed checksum. The use of this additional packet format for checksum offload is explained in subsequent patches. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h

[PATCH net-next v3 RESEND 02/10] net: qualcomm: rmnet: Remove invalid condition while stamping mux id

2018-01-07 Thread Subash Abhinov Kasiviswanathan
rmnet devices cannot have a mux id of 255. This is validated when assigning the mux id to the rmnet devices. As a result, checking for mux id 255 does not apply in egress path. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm

[PATCH net-next v3 RESEND 04/10] net: qualcomm: rmnet: Rename ingress data format to data format

2018-01-07 Thread Subash Abhinov Kasiviswanathan
This is done so that we can use this field for both ingress and egress flags. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 10 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 2 +- d

[PATCH net-next v3 RESEND 07/10] net: qualcomm: rmnet: Add support for RX checksum offload

2018-01-07 Thread Subash Abhinov Kasiviswanathan
as per RFC 768 and for unexpected TCP checksum of 0. If checksum offload is disabled when using MAPv4 packet format in receive path, the packet is queued as is to network stack without the validations above. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- .

[PATCH net-next v3 RESEND 03/10] net: qualcomm: rmnet: Remove unused function declaration

2018-01-07 Thread Subash Abhinov Kasiviswanathan
rmnet_map_demultiplex() is only declared but not defined anywhere, so remove it. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/qualcomm

[PATCH net-next v3 RESEND 00/10] net: qualcomm: rmnet: Enable csum offloads

2018-01-07 Thread Subash Abhinov Kasiviswanathan
ors reported by kbuild test robot v2->v3: Update the commit message for Patch 5 based on Eric's comments Subash Abhinov Kasiviswanathan (10): net: qualcomm: rmnet: Remove redundant check when stamping map header net: qualcomm: rmnet: Remove invalid condition while stamping mux id net: qu

[PATCH net-next v3 RESEND 01/10] net: qualcomm: rmnet: Remove redundant check when stamping map header

2018-01-07 Thread Subash Abhinov Kasiviswanathan
We already check the headroom once in rmnet_map_egress_handler(), so this is not needed. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/et

Re: [PATCH net-next v3 00/10] net: qualcomm: rmnet: Enable csum offloads

2018-01-06 Thread Subash Abhinov Kasiviswanathan
It's there, in state "Changes Requested" because you were given feedback on your patch series and you must address it. "Changes Requested" state patches do not show up in the default view, you must explicitly adjust the search criteria to see patches which are not in state which qualifies as

Re: [PATCH net-next v3 00/10] net: qualcomm: rmnet: Enable csum offloads

2018-01-05 Thread Subash Abhinov Kasiviswanathan
On 2018-01-05 13:41, Subash Abhinov Kasiviswanathan wrote: This series introduces the MAPv4 packet format for checksum offload plus some other minor changes. Patches 1-3 are cleanups. Patch 4 renames the ingress format to data format so that all data formats can be configured using this going

[PATCH net-next v3 07/10] net: qualcomm: rmnet: Add support for RX checksum offload

2018-01-05 Thread Subash Abhinov Kasiviswanathan
as per RFC 768 and for unexpected TCP checksum of 0. If checksum offload is disabled when using MAPv4 packet format in receive path, the packet is queued as is to network stack without the validations above. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- .

[PATCH net-next v3 02/10] net: qualcomm: rmnet: Remove invalid condition while stamping mux id

2018-01-05 Thread Subash Abhinov Kasiviswanathan
rmnet devices cannot have a mux id of 255. This is validated when assigning the mux id to the rmnet devices. As a result, checking for mux id 255 does not apply in egress path. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm

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

2018-01-05 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 <subas...@codeaurora.

[PATCH net-next v3 03/10] net: qualcomm: rmnet: Remove unused function declaration

2018-01-05 Thread Subash Abhinov Kasiviswanathan
rmnet_map_demultiplex() is only declared but not defined anywhere, so remove it. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/qualcomm

[PATCH net-next v3 04/10] net: qualcomm: rmnet: Rename ingress data format to data format

2018-01-05 Thread Subash Abhinov Kasiviswanathan
This is done so that we can use this field for both ingress and egress flags. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 10 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 2 +- d

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

2018-01-05 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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm

[PATCH net-next v3 06/10] net: qualcomm: rmnet: Define the MAPv4 packet formats

2018-01-05 Thread Subash Abhinov Kasiviswanathan
hardware will insert the computed checksum. The use of this additional packet format for checksum offload is explained in subsequent patches. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h

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

2018-01-05 Thread Subash Abhinov Kasiviswanathan
the 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

[PATCH net-next v3 09/10] net: qualcomm: rmnet: Add support for TX checksum offload

2018-01-05 Thread Subash Abhinov Kasiviswanathan
of partial checksum field in transport header. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- .../net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 8 ++ drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h| 2 + .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c

[PATCH net-next v3 00/10] net: qualcomm: rmnet: Enable csum offloads

2018-01-05 Thread Subash Abhinov Kasiviswanathan
ors reported by kbuild test robot v2->v3: Update the commit message for Patch 5 based on Eric's comments Subash Abhinov Kasiviswanathan (10): net: qualcomm: rmnet: Remove redundant check when stamping map header net: qualcomm: rmnet: Remove invalid condition while stamping mux id net: qu

[PATCH net-next v3 01/10] net: qualcomm: rmnet: Remove redundant check when stamping map header

2018-01-05 Thread Subash Abhinov Kasiviswanathan
We already check the headroom once in rmnet_map_egress_handler(), so this is not needed. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/et

Re: [PATCH net-next v2 05/10] net: qualcomm: rmnet: Set pacing rate

2018-01-04 Thread Subash Abhinov Kasiviswanathan
The real device over which the rmnet devices are installed also aggregate multiple IP packets and sends them as a single large aggregate frame to the hardware. It would be nice to give some details about this in the changelog. Also what results you get with different values for the shift

Re: [PATCH net-next v2 05/10] net: qualcomm: rmnet: Set pacing rate

2018-01-03 Thread Subash Abhinov Kasiviswanathan
+ sk_pacing_shift_update(skb->sk, 8); Well... Please tell us why this is needed in this driver. This interface is meant for wifi aggregation, not to work around some strange ethernet drivers designs. Hi Eric The real device over which the rmnet devices are installed also aggregate

[PATCH net-next v2 04/10] net: qualcomm: rmnet: Rename ingress data format to data format

2018-01-03 Thread Subash Abhinov Kasiviswanathan
This is done so that we can use this field for both ingress and egress flags. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 10 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 2 +- d

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

2018-01-03 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 <subas...@codeaurora.org> --- drivers/net/ethernet/qualcomm

[PATCH net-next v2 09/10] net: qualcomm: rmnet: Add support for TX checksum offload

2018-01-03 Thread Subash Abhinov Kasiviswanathan
of partial checksum field in transport header. Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- .../net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 8 ++ drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h| 2 + .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c

  1   2   3   >