diff options
Diffstat (limited to 'drivers/s390/net/claw.h')
-rw-r--r-- | drivers/s390/net/claw.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/s390/net/claw.h b/drivers/s390/net/claw.h index 1ee9a6f06541..1a89d989f348 100644 --- a/drivers/s390/net/claw.h +++ b/drivers/s390/net/claw.h | |||
@@ -114,11 +114,20 @@ do { \ | |||
114 | debug_event(claw_dbf_##name,level,(void*)(addr),len); \ | 114 | debug_event(claw_dbf_##name,level,(void*)(addr),len); \ |
115 | } while (0) | 115 | } while (0) |
116 | 116 | ||
117 | /* Allow to sort out low debug levels early to avoid wasted sprints */ | ||
118 | static inline int claw_dbf_passes(debug_info_t *dbf_grp, int level) | ||
119 | { | ||
120 | return (level <= dbf_grp->level); | ||
121 | } | ||
122 | |||
117 | #define CLAW_DBF_TEXT_(level,name,text...) \ | 123 | #define CLAW_DBF_TEXT_(level,name,text...) \ |
118 | do { \ | 124 | do { \ |
119 | sprintf(debug_buffer, text); \ | 125 | if (claw_dbf_passes(claw_dbf_##name, level)) { \ |
120 | debug_text_event(claw_dbf_##name,level, debug_buffer);\ | 126 | sprintf(debug_buffer, text); \ |
121 | } while (0) | 127 | debug_text_event(claw_dbf_##name, level, \ |
128 | debug_buffer); \ | ||
129 | } \ | ||
130 | } while (0) | ||
122 | 131 | ||
123 | /******************************************************* | 132 | /******************************************************* |
124 | * Define Control Blocks * | 133 | * Define Control Blocks * |
@@ -278,8 +287,6 @@ struct claw_env { | |||
278 | __u16 write_size; /* write buffer size */ | 287 | __u16 write_size; /* write buffer size */ |
279 | __u16 dev_id; /* device ident */ | 288 | __u16 dev_id; /* device ident */ |
280 | __u8 packing; /* are we packing? */ | 289 | __u8 packing; /* are we packing? */ |
281 | volatile __u8 queme_switch; /* gate for imed packing */ | ||
282 | volatile unsigned long pk_delay; /* Delay for adaptive packing */ | ||
283 | __u8 in_use; /* device active flag */ | 290 | __u8 in_use; /* device active flag */ |
284 | struct net_device *ndev; /* backward ptr to the net dev*/ | 291 | struct net_device *ndev; /* backward ptr to the net dev*/ |
285 | }; | 292 | }; |