File tree 1 file changed +7
-6
lines changed
tools/testing/selftests/bpf
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -757,14 +757,15 @@ static struct pkt_stream *pkt_stream_clone(struct pkt_stream *pkt_stream)
757
757
return pkt_stream_generate (pkt_stream -> nb_pkts , pkt_stream -> pkts [0 ].len );
758
758
}
759
759
760
- static void pkt_stream_replace (struct test_spec * test , u32 nb_pkts , u32 pkt_len )
760
+ static void pkt_stream_replace_ifobject (struct ifobject * ifobj , u32 nb_pkts , u32 pkt_len )
761
761
{
762
- struct pkt_stream * pkt_stream ;
762
+ ifobj -> xsk -> pkt_stream = pkt_stream_generate (nb_pkts , pkt_len );
763
+ }
763
764
764
- pkt_stream = pkt_stream_generate ( nb_pkts , pkt_len );
765
- test -> ifobj_tx -> xsk -> pkt_stream = pkt_stream ;
766
- pkt_stream = pkt_stream_generate ( nb_pkts , pkt_len );
767
- test -> ifobj_rx -> xsk -> pkt_stream = pkt_stream ;
765
+ static void pkt_stream_replace ( struct test_spec * test , u32 nb_pkts , u32 pkt_len )
766
+ {
767
+ pkt_stream_replace_ifobject ( test -> ifobj_tx , nb_pkts , pkt_len );
768
+ pkt_stream_replace_ifobject ( test -> ifobj_rx , nb_pkts , pkt_len ) ;
768
769
}
769
770
770
771
static void __pkt_stream_replace_half (struct ifobject * ifobj , u32 pkt_len ,
You can’t perform that action at this time.
0 commit comments