Skip to content

Commit 239373a

Browse files
committed
tgupdate: merge t/selftests-bpf-Add-bpf_red-scheduler base into t/selftests-bpf-Add-bpf_red-scheduler
2 parents ff3c67e + 63c9e55 commit 239373a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

drivers/net/ethernet/ti/cpsw_ale.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ struct cpsw_ale_dev_id {
127127

128128
static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits)
129129
{
130-
int idx, idx2;
130+
int idx, idx2, index;
131131
u32 hi_val = 0;
132132

133133
idx = start / 32;
134134
idx2 = (start + bits - 1) / 32;
135135
/* Check if bits to be fetched exceed a word */
136136
if (idx != idx2) {
137-
idx2 = 2 - idx2; /* flip */
138-
hi_val = ale_entry[idx2] << ((idx2 * 32) - start);
137+
index = 2 - idx2; /* flip */
138+
hi_val = ale_entry[index] << ((idx2 * 32) - start);
139139
}
140140
start -= idx * 32;
141141
idx = 2 - idx; /* flip */
@@ -145,16 +145,16 @@ static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits)
145145
static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits,
146146
u32 value)
147147
{
148-
int idx, idx2;
148+
int idx, idx2, index;
149149

150150
value &= BITMASK(bits);
151151
idx = start / 32;
152152
idx2 = (start + bits - 1) / 32;
153153
/* Check if bits to be set exceed a word */
154154
if (idx != idx2) {
155-
idx2 = 2 - idx2; /* flip */
156-
ale_entry[idx2] &= ~(BITMASK(bits + start - (idx2 * 32)));
157-
ale_entry[idx2] |= (value >> ((idx2 * 32) - start));
155+
index = 2 - idx2; /* flip */
156+
ale_entry[index] &= ~(BITMASK(bits + start - (idx2 * 32)));
157+
ale_entry[index] |= (value >> ((idx2 * 32) - start));
158158
}
159159
start -= idx * 32;
160160
idx = 2 - idx; /* flip */

net/ipv4/route.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,6 +2446,7 @@ ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr,
24462446
net_warn_ratelimited("martian destination %pI4 from %pI4, dev %s\n",
24472447
&daddr, &saddr, dev->name);
24482448
#endif
2449+
goto out;
24492450

24502451
e_nobufs:
24512452
reason = SKB_DROP_REASON_NOMEM;

0 commit comments

Comments
 (0)