+5
−11
+8
−1
Loading
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IATZWZ CVE: NA ----------------------------------------------------------- When the raw socket is sent, the actual offset between the network header and skb->data in the packet is 7 bytes. (1 byte of sw_ctype and 6 bytes of UBL_HLEN) In the kernel, skb->network_header is offset by dev->hard_header_len bytes (UBL_HLEN = 6). As a result, the value of dscp cannot be obtained correctly in the .ndo_select_queue function. Therefore, multiple tc cannot be specified by specifying tos when sending the raw socket. To solve this problem, the cfg field is added to struct ublhdr and the value of UBL_HLEN is changed from 6 to 7. Fixes: eb44201e ("ubl: add CONFIG_UBL definition and UBL interface") Signed-off-by:chuan Wu <wuchuan4@huawei.com> Signed-off-by:
jianqiang Li <lijianqiang16@huawei.com>