mirror of https://gitee.com/openkylin/linux.git
ice: Resolve static analysis warning
Some static analysis tools can complain when doing a bitop assignment using operands of different sizes. Fix that. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
3171948e94
commit
e65e9e1566
|
@ -1874,10 +1874,10 @@ int ice_tso(struct ice_tx_buf *first, struct ice_tx_offload_params *off)
|
|||
cd_mss = skb_shinfo(skb)->gso_size;
|
||||
|
||||
/* record cdesc_qw1 with TSO parameters */
|
||||
off->cd_qw1 |= ICE_TX_DESC_DTYPE_CTX |
|
||||
(ICE_TX_CTX_DESC_TSO << ICE_TXD_CTX_QW1_CMD_S) |
|
||||
(cd_tso_len << ICE_TXD_CTX_QW1_TSO_LEN_S) |
|
||||
(cd_mss << ICE_TXD_CTX_QW1_MSS_S);
|
||||
off->cd_qw1 |= (u64)(ICE_TX_DESC_DTYPE_CTX |
|
||||
(ICE_TX_CTX_DESC_TSO << ICE_TXD_CTX_QW1_CMD_S) |
|
||||
(cd_tso_len << ICE_TXD_CTX_QW1_TSO_LEN_S) |
|
||||
(cd_mss << ICE_TXD_CTX_QW1_MSS_S));
|
||||
first->tx_flags |= ICE_TX_FLAGS_TSO;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue