Skip to content

Commit 3b89b51

Browse files
Dan Carpenterkuba-moo
authored andcommitted
net: fix IFF_TX_SKB_NO_LINEAR definition
The "1<<31" shift has a sign extension bug so IFF_TX_SKB_NO_LINEAR is 0xffffffff80000000 instead of 0x0000000080000000. Fixes: c2ff53d ("net: Add priv_flags for allow tx skb without linear") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Link: https://lore.kernel.org/r/YrRrcGttfEVnf85Q@kili Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 8cc6838 commit 3b89b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/netdevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ enum netdev_priv_flags {
16711671
IFF_FAILOVER_SLAVE = 1<<28,
16721672
IFF_L3MDEV_RX_HANDLER = 1<<29,
16731673
IFF_LIVE_RENAME_OK = 1<<30,
1674-
IFF_TX_SKB_NO_LINEAR = 1<<31,
1674+
IFF_TX_SKB_NO_LINEAR = BIT_ULL(31),
16751675
IFF_CHANGE_PROTO_DOWN = BIT_ULL(32),
16761676
};
16771677

0 commit comments

Comments
 (0)