Skip to content

Commit 123a120

Browse files
pseidererNipaLocal
authored and
NipaLocal
committed
net: pktgen: fix code style (WARNING: Block comments)
Fix checkpatch code style warnings: WARNING: Block comments use a trailing */ on a separate line + * removal by worker thread */ WARNING: Block comments use * on subsequent lines + __u8 tos; /* six MSB of (former) IPv4 TOS + are for dscp codepoint */ WARNING: Block comments use a trailing */ on a separate line + are for dscp codepoint */ WARNING: Block comments use * on subsequent lines + __u8 traffic_class; /* ditto for the (former) Traffic Class in IPv6 + (see RFC 3260, sec. 4) */ WARNING: Block comments use a trailing */ on a separate line + (see RFC 3260, sec. 4) */ WARNING: Block comments use * on subsequent lines + /* = { + 0x00, 0x80, 0xC8, 0x79, 0xB3, 0xCB, WARNING: Block comments use * on subsequent lines + /* Field for thread to receive "posted" events terminate, + stop ifs etc. */ WARNING: Block comments use a trailing */ on a separate line + stop ifs etc. */ WARNING: Block comments should align the * on each line + * we go look for it ... +*/ WARNING: Block comments use a trailing */ on a separate line + * we resolve the dst issue */ WARNING: Block comments use a trailing */ on a separate line + * with proc_create_data() */ Signed-off-by: Peter Seiderer <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 64275dd commit 123a120

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

net/core/pktgen.c

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ struct pktgen_dev {
283283
int pkt_overhead; /* overhead for MPLS, VLANs, IPSEC etc */
284284
int nfrags;
285285
int removal_mark; /* non-zero => the device is marked for
286-
* removal by worker thread */
286+
* removal by worker thread
287+
*/
287288

288289
struct page *page;
289290
u64 delay; /* nano-seconds */
@@ -346,10 +347,12 @@ struct pktgen_dev {
346347
__u16 udp_dst_max; /* exclusive, dest UDP port */
347348

348349
/* DSCP + ECN */
349-
__u8 tos; /* six MSB of (former) IPv4 TOS
350-
are for dscp codepoint */
351-
__u8 traffic_class; /* ditto for the (former) Traffic Class in IPv6
352-
(see RFC 3260, sec. 4) */
350+
__u8 tos; /* six MSB of (former) IPv4 TOS
351+
* are for dscp codepoint
352+
*/
353+
__u8 traffic_class; /* ditto for the (former) Traffic Class in IPv6
354+
* (see RFC 3260, sec. 4)
355+
*/
353356

354357
/* IMIX */
355358
unsigned int n_imix_entries;
@@ -389,12 +392,12 @@ struct pktgen_dev {
389392

390393
__u8 hh[14];
391394
/* = {
392-
0x00, 0x80, 0xC8, 0x79, 0xB3, 0xCB,
393-
394-
We fill in SRC address later
395-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
396-
0x08, 0x00
397-
};
395+
* 0x00, 0x80, 0xC8, 0x79, 0xB3, 0xCB,
396+
*
397+
* We fill in SRC address later
398+
* 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
399+
* 0x08, 0x00
400+
* };
398401
*/
399402
__u16 pad; /* pad out the hh struct to an even 16 bytes */
400403

@@ -458,7 +461,8 @@ struct pktgen_thread {
458461
char result[512];
459462

460463
/* Field for thread to receive "posted" events terminate,
461-
stop ifs etc. */
464+
* stop ifs etc.
465+
*/
462466

463467
u32 control;
464468
int cpu;
@@ -2396,7 +2400,7 @@ static inline int f_pick(struct pktgen_dev *pkt_dev)
23962400

23972401
/* If there was already an IPSEC SA, we keep it as is, else
23982402
* we go look for it ...
2399-
*/
2403+
*/
24002404
#define DUMMY_MARK 0
24012405
static void get_ipsec_sa(struct pktgen_dev *pkt_dev, int flow)
24022406
{
@@ -2693,7 +2697,8 @@ static int pktgen_output_ipsec(struct sk_buff *skb, struct pktgen_dev *pkt_dev)
26932697
if (!x)
26942698
return 0;
26952699
/* XXX: we dont support tunnel mode for now until
2696-
* we resolve the dst issue */
2700+
* we resolve the dst issue
2701+
*/
26972702
if ((x->props.mode != XFRM_MODE_TRANSPORT) && (pkt_dev->spi == 0))
26982703
return 0;
26992704

@@ -3787,7 +3792,8 @@ static int add_dev_to_thread(struct pktgen_thread *t,
37873792
* userspace on another CPU than the kthread. The if_lock()
37883793
* is used here to sync with concurrent instances of
37893794
* _rem_dev_from_if_list() invoked via kthread, which is also
3790-
* updating the if_list */
3795+
* updating the if_list
3796+
*/
37913797
if_lock(t);
37923798

37933799
if (pkt_dev->pg_thread) {
@@ -3982,7 +3988,8 @@ static int pktgen_remove_device(struct pktgen_thread *t,
39823988

39833989
/* Remove proc before if_list entry, because add_device uses
39843990
* list to determine if interface already exist, avoid race
3985-
* with proc_create_data() */
3991+
* with proc_create_data()
3992+
*/
39863993
proc_remove(pkt_dev->entry);
39873994

39883995
/* And update the thread if_list */

0 commit comments

Comments
 (0)