Ver Fonte

core: Embed PB Seq number into port

Embed Pending Byte sequence number into
the rmnet_port to be used by rmnet_shs
and shsusrd.

Change-Id: Ied7828759934271f52b2a7e4626a7507b8978740
Signed-off-by: Conner Huff <[email protected]>
Conner Huff há 2 anos atrás
pai
commit
f286ba9cc7
2 ficheiros alterados com 4 adições e 1 exclusões
  1. 1 0
      core/rmnet_config.h
  2. 3 1
      core/rmnet_map_command.c

+ 1 - 0
core/rmnet_config.h

@@ -77,6 +77,7 @@ struct rmnet_port_priv_stats {
 	u64 dl_frag_stat_1;
 	u64 dl_frag_stat[5];
 	u64 pb_marker_count;
+	u64 pb_marker_seq;
 };
 
 struct rmnet_egress_agg_params {

+ 3 - 1
core/rmnet_map_command.c

@@ -128,8 +128,10 @@ void rmnet_map_pb_ind_notify(struct rmnet_port *port,
 {
 	struct rmnet_map_pb_ind *tmp;
 
-	list_for_each_entry(tmp, &port->pb_list, list)
+	list_for_each_entry(tmp, &port->pb_list, list) {
+		port->stats.pb_marker_seq = pbhdr->le.seq_num;
 		tmp->pb_ind_handler(pbhdr);
+	}
 }
 
 static void rmnet_map_process_pb_ind(struct sk_buff *skb,