Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F138103592
D4939.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1017 B
Referenced Files
None
Subscribers
None
D4939.id.diff
View Options
Index: head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
===================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
@@ -100,20 +100,23 @@
/* TODO: consider vlans, ip options, ... */
struct ether_header *eh;
uint16_t eh_type;
+ uint16_t tot_len;
struct ip6_hdr *ip6 = NULL;
struct ip *ip4 = NULL;
struct tcphdr *th;
uint32_t *ts_ptr;
+ uint8_t l4_hdr_type;
+ int tcp_ack;
eh = mtod(mb, struct ether_header *);
eh_type = ntohs(eh->ether_type);
- u8 l4_hdr_type = get_cqe_l4_hdr_type(cqe);
- int tcp_ack = ((CQE_L4_HDR_TYPE_TCP_ACK_NO_DATA == l4_hdr_type) ||
+ l4_hdr_type = get_cqe_l4_hdr_type(cqe);
+ tcp_ack = ((CQE_L4_HDR_TYPE_TCP_ACK_NO_DATA == l4_hdr_type) ||
(CQE_L4_HDR_TYPE_TCP_ACK_AND_DATA == l4_hdr_type));
/* TODO: consider vlan */
- u16 tot_len = be32_to_cpu(cqe->byte_cnt) - ETHER_HDR_LEN;
+ tot_len = be32_to_cpu(cqe->byte_cnt) - ETHER_HDR_LEN;
switch (eh_type) {
case ETHERTYPE_IP:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 29, 10:18 PM (13 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26361669
Default Alt Text
D4939.id.diff (1017 B)
Attached To
Mode
D4939: mlx5en: Fix declaration of variables
Attached
Detach File
Event Timeline
Log In to Comment