Commit b23e722e authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by David S. Miller

net: qualcomm: rmnet: Rename ingress data format to data format

This is done so that we can use this field for both ingress and
egress flags.
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 76e08955
...@@ -143,7 +143,7 @@ static int rmnet_newlink(struct net *src_net, struct net_device *dev, ...@@ -143,7 +143,7 @@ static int rmnet_newlink(struct net *src_net, struct net_device *dev,
struct nlattr *tb[], struct nlattr *data[], struct nlattr *tb[], struct nlattr *data[],
struct netlink_ext_ack *extack) struct netlink_ext_ack *extack)
{ {
int ingress_format = RMNET_INGRESS_FORMAT_DEAGGREGATION; u32 data_format = RMNET_INGRESS_FORMAT_DEAGGREGATION;
struct net_device *real_dev; struct net_device *real_dev;
int mode = RMNET_EPMODE_VND; int mode = RMNET_EPMODE_VND;
struct rmnet_endpoint *ep; struct rmnet_endpoint *ep;
...@@ -185,11 +185,11 @@ static int rmnet_newlink(struct net *src_net, struct net_device *dev, ...@@ -185,11 +185,11 @@ static int rmnet_newlink(struct net *src_net, struct net_device *dev,
struct ifla_vlan_flags *flags; struct ifla_vlan_flags *flags;
flags = nla_data(data[IFLA_VLAN_FLAGS]); flags = nla_data(data[IFLA_VLAN_FLAGS]);
ingress_format = flags->flags & flags->mask; data_format = flags->flags & flags->mask;
} }
netdev_dbg(dev, "data format [ingress 0x%08X]\n", ingress_format); netdev_dbg(dev, "data format [0x%08X]\n", data_format);
port->ingress_data_format = ingress_format; port->data_format = data_format;
return 0; return 0;
...@@ -353,7 +353,7 @@ static int rmnet_changelink(struct net_device *dev, struct nlattr *tb[], ...@@ -353,7 +353,7 @@ static int rmnet_changelink(struct net_device *dev, struct nlattr *tb[],
struct ifla_vlan_flags *flags; struct ifla_vlan_flags *flags;
flags = nla_data(data[IFLA_VLAN_FLAGS]); flags = nla_data(data[IFLA_VLAN_FLAGS]);
port->ingress_data_format = flags->flags & flags->mask; port->data_format = flags->flags & flags->mask;
} }
return 0; return 0;
......
...@@ -32,7 +32,7 @@ struct rmnet_endpoint { ...@@ -32,7 +32,7 @@ struct rmnet_endpoint {
*/ */
struct rmnet_port { struct rmnet_port {
struct net_device *dev; struct net_device *dev;
u32 ingress_data_format; u32 data_format;
u8 nr_rmnet_devs; u8 nr_rmnet_devs;
u8 rmnet_mode; u8 rmnet_mode;
struct hlist_head muxed_ep[RMNET_MAX_LOGICAL_EP]; struct hlist_head muxed_ep[RMNET_MAX_LOGICAL_EP];
......
...@@ -69,8 +69,7 @@ __rmnet_map_ingress_handler(struct sk_buff *skb, ...@@ -69,8 +69,7 @@ __rmnet_map_ingress_handler(struct sk_buff *skb,
u16 len; u16 len;
if (RMNET_MAP_GET_CD_BIT(skb)) { if (RMNET_MAP_GET_CD_BIT(skb)) {
if (port->ingress_data_format if (port->data_format & RMNET_INGRESS_FORMAT_MAP_COMMANDS)
& RMNET_INGRESS_FORMAT_MAP_COMMANDS)
return rmnet_map_command(skb, port); return rmnet_map_command(skb, port);
goto free_skb; goto free_skb;
...@@ -114,7 +113,7 @@ rmnet_map_ingress_handler(struct sk_buff *skb, ...@@ -114,7 +113,7 @@ rmnet_map_ingress_handler(struct sk_buff *skb,
skb_push(skb, ETH_HLEN); skb_push(skb, ETH_HLEN);
} }
if (port->ingress_data_format & RMNET_INGRESS_FORMAT_DEAGGREGATION) { if (port->data_format & RMNET_INGRESS_FORMAT_DEAGGREGATION) {
while ((skbn = rmnet_map_deaggregate(skb)) != NULL) while ((skbn = rmnet_map_deaggregate(skb)) != NULL)
__rmnet_map_ingress_handler(skbn, port); __rmnet_map_ingress_handler(skbn, port);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment