hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c
....@@ -1,13 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License version 2 and
5
- * only version 2 as published by the Free Software Foundation.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
113 */
124
135 #include <linux/netdevice.h>
....@@ -20,17 +12,12 @@
2012 struct rmnet_port *port,
2113 int enable)
2214 {
23
- struct rmnet_map_control_command *cmd;
2415 struct rmnet_endpoint *ep;
2516 struct net_device *vnd;
26
- u16 ip_family;
27
- u16 fc_seq;
28
- u32 qos_id;
2917 u8 mux_id;
3018 int r;
3119
3220 mux_id = RMNET_MAP_GET_MUX_ID(skb);
33
- cmd = RMNET_MAP_GET_CMD_START(skb);
3421
3522 if (mux_id >= RMNET_MAX_LOGICAL_EP) {
3623 kfree_skb(skb);
....@@ -44,10 +31,6 @@
4431 }
4532
4633 vnd = ep->egress_dev;
47
-
48
- ip_family = cmd->flow_control.ip_family;
49
- fc_seq = ntohs(cmd->flow_control.flow_control_seq_num);
50
- qos_id = ntohl(cmd->flow_control.qos_id);
5134
5235 /* Ignore the ip family and pass the sequence number for both v4 and v6
5336 * sequence. User space does not support creating dedicated flows for