rmnet_core: Discard DL markers received over LL channel

DL markers received over this channel need to be silently dropped, as
processing them will interfere with the standard DL marker processing on
the default channel.

Change-Id: Id6b36c3f877bf15768e3ac0a5ea8803656375a2b
Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
Este commit está contenido en:
Sean Tranchetti
2021-03-04 14:14:46 -08:00
cometido por Subash Abhinov Kasiviswanathan
padre aeba491583
commit 9e18715d96
Se han modificado 2 ficheros con 16 adiciones y 0 borrados

Ver fichero

@@ -545,6 +545,12 @@ int rmnet_frag_flow_command(struct rmnet_frag_descriptor *frag_desc,
if (!cmd)
return -1;
/* Silently discard any marksers recived over the LL channel */
if (frag_desc->priority == 0xda1a &&
(cmd->command_name == RMNET_MAP_COMMAND_FLOW_START ||
cmd->command_name == RMNET_MAP_COMMAND_FLOW_END))
return 0;
switch (cmd->command_name) {
case RMNET_MAP_COMMAND_FLOW_START:
rmnet_frag_process_flow_start(frag_desc, cmd, port, pkt_len);

Ver fichero

@@ -243,6 +243,16 @@ int rmnet_map_flow_command(struct sk_buff *skb, struct rmnet_port *port,
cmd = rmnet_map_get_cmd_start(skb);
command_name = cmd->command_name;
/* Silently discard any markers on the LL channel */
if (skb->priority == 0xda1a &&
(command_name == RMNET_MAP_COMMAND_FLOW_START ||
command_name == RMNET_MAP_COMMAND_FLOW_END)) {
if (!rmnet_perf)
consume_skb(skb);
return 0;
}
switch (command_name) {
case RMNET_MAP_COMMAND_FLOW_START:
rmnet_map_process_flow_start(skb, port, rmnet_perf);