From: kernel test robot <lkp@intel.com>
To: Mateusz Polchlopek <mateusz.polchlopek@intel.com>,
intel-wired-lan@lists.osuosl.org
Cc: Jacob Keller <jacob.e.keller@intel.com>,
netdev@vger.kernel.org,
Mateusz Polchlopek <mateusz.polchlopek@intel.com>,
Wojciech Drewek <wojciech.drewek@intel.com>,
oe-kbuild-all@lists.linux.dev
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v1 09/12] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors
Date: Wed, 27 Mar 2024 05:01:55 +0800 [thread overview]
Message-ID: <202403270404.dmqDS0ic-lkp@intel.com> (raw)
In-Reply-To: <20240326115116.10040-10-mateusz.polchlopek@intel.com>
Hi Mateusz,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tnguy-next-queue/dev-queue]
url: https://github.com/intel-lab-lkp/linux/commits/Mateusz-Polchlopek/virtchnl-add-support-for-enabling-PTP-on-iAVF/20240326-200321
base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
patch link: https://lore.kernel.org/r/20240326115116.10040-10-mateusz.polchlopek%40intel.com
patch subject: [Intel-wired-lan] [PATCH iwl-next v1 09/12] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240327/202403270404.dmqDS0ic-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240327/202403270404.dmqDS0ic-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403270404.dmqDS0ic-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/intel/iavf/iavf_txrx.c: In function 'iavf_legacy_rx_csum':
>> drivers/net/ethernet/intel/iavf/iavf_txrx.c:1081:23: warning: variable 'rx_status' set but not used [-Wunused-but-set-variable]
1081 | u32 rx_error, rx_status;
| ^~~~~~~~~
drivers/net/ethernet/intel/iavf/iavf_txrx.c: In function 'iavf_flex_rx_csum':
>> drivers/net/ethernet/intel/iavf/iavf_txrx.c:1118:25: warning: variable 'rx_status1' set but not used [-Wunused-but-set-variable]
1118 | u16 rx_status0, rx_status1, ptype;
| ^~~~~~~~~~
vim +/rx_status +1081 drivers/net/ethernet/intel/iavf/iavf_txrx.c
1065
1066 /**
1067 * iavf_legacy_rx_csum - Indicate in skb if hw indicated a good cksum
1068 * @vsi: the VSI we care about
1069 * @skb: skb currently being received and modified
1070 * @rx_desc: the receive descriptor
1071 *
1072 * This function only operates on the VIRTCHNL_RXDID_1_32B_BASE legacy 32byte
1073 * descriptor writeback format.
1074 **/
1075 static inline void iavf_legacy_rx_csum(struct iavf_vsi *vsi,
1076 struct sk_buff *skb,
1077 union iavf_rx_desc *rx_desc)
1078 {
1079 struct iavf_rx_csum_decoded csum_bits;
1080 struct iavf_rx_ptype_decoded decoded;
> 1081 u32 rx_error, rx_status;
1082 u64 qword;
1083 u16 ptype;
1084
1085 qword = le64_to_cpu(rx_desc->wb.qword1.status_error_len);
1086 ptype = FIELD_GET(IAVF_RXD_QW1_PTYPE_MASK, qword);
1087 rx_error = FIELD_GET(IAVF_RXD_QW1_ERROR_MASK, qword);
1088 rx_status = FIELD_GET(IAVF_RXD_QW1_STATUS_MASK, qword);
1089 decoded = decode_rx_desc_ptype(ptype);
1090
1091 csum_bits.ipe = FIELD_GET(IAVF_RX_DESC_ERROR_IPE_MASK, rx_error);
1092 csum_bits.eipe = FIELD_GET(IAVF_RX_DESC_ERROR_EIPE_MASK, rx_error);
1093 csum_bits.l4e = FIELD_GET(IAVF_RX_DESC_ERROR_L4E_MASK, rx_error);
1094 csum_bits.pprs = FIELD_GET(IAVF_RX_DESC_ERROR_PPRS_MASK, rx_error);
1095 csum_bits.l3l4p = FIELD_GET(IAVF_RX_DESC_STATUS_L3L4P_MASK, rx_error);
1096 csum_bits.ipv6exadd = FIELD_GET(IAVF_RX_DESC_STATUS_IPV6EXADD_MASK,
1097 rx_error);
1098 csum_bits.nat = 0;
1099 csum_bits.eudpe = 0;
1100
1101 iavf_rx_csum(vsi, skb, &decoded, &csum_bits);
1102 }
1103
1104 /**
1105 * iavf_flex_rx_csum - Indicate in skb if hw indicated a good cksum
1106 * @vsi: the VSI we care about
1107 * @skb: skb currently being received and modified
1108 * @rx_desc: the receive descriptor
1109 *
1110 * This function only operates on the VIRTCHNL_RXDID_2_FLEX_SQ_NIC flexible
1111 * descriptor writeback format.
1112 **/
1113 static inline void iavf_flex_rx_csum(struct iavf_vsi *vsi, struct sk_buff *skb,
1114 union iavf_rx_desc *rx_desc)
1115 {
1116 struct iavf_rx_csum_decoded csum_bits;
1117 struct iavf_rx_ptype_decoded decoded;
> 1118 u16 rx_status0, rx_status1, ptype;
1119
1120 rx_status0 = le16_to_cpu(rx_desc->flex_wb.status_error0);
1121 rx_status1 = le16_to_cpu(rx_desc->flex_wb.status_error1);
1122 ptype = le16_to_cpu(FIELD_GET(IAVF_RX_FLEX_DESC_PTYPE_M,
1123 rx_desc->flex_wb.ptype_flexi_flags0));
1124 decoded = decode_rx_desc_ptype(ptype);
1125
1126 csum_bits.ipe = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_XSUM_IPE_M,
1127 rx_status0);
1128 csum_bits.eipe = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_XSUM_EIPE_M,
1129 rx_status0);
1130 csum_bits.l4e = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_XSUM_L4E_M,
1131 rx_status0);
1132 csum_bits.eudpe = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_XSUM_EUDPE_M,
1133 rx_status0);
1134 csum_bits.l3l4p = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_L3L4P_M,
1135 rx_status0);
1136 csum_bits.ipv6exadd = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_IPV6EXADD_M,
1137 rx_status0);
1138 csum_bits.nat = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS1_NAT_M, rx_status0);
1139 csum_bits.pprs = 0;
1140
1141 iavf_rx_csum(vsi, skb, &decoded, &csum_bits);
1142 }
1143
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Mateusz Polchlopek <mateusz.polchlopek@intel.com>,
intel-wired-lan@lists.osuosl.org
Cc: oe-kbuild-all@lists.linux.dev,
Jacob Keller <jacob.e.keller@intel.com>,
netdev@vger.kernel.org,
Wojciech Drewek <wojciech.drewek@intel.com>,
Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v1 09/12] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors
Date: Wed, 27 Mar 2024 05:01:55 +0800 [thread overview]
Message-ID: <202403270404.dmqDS0ic-lkp@intel.com> (raw)
In-Reply-To: <20240326115116.10040-10-mateusz.polchlopek@intel.com>
Hi Mateusz,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tnguy-next-queue/dev-queue]
url: https://github.com/intel-lab-lkp/linux/commits/Mateusz-Polchlopek/virtchnl-add-support-for-enabling-PTP-on-iAVF/20240326-200321
base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
patch link: https://lore.kernel.org/r/20240326115116.10040-10-mateusz.polchlopek%40intel.com
patch subject: [Intel-wired-lan] [PATCH iwl-next v1 09/12] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240327/202403270404.dmqDS0ic-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240327/202403270404.dmqDS0ic-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403270404.dmqDS0ic-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/intel/iavf/iavf_txrx.c: In function 'iavf_legacy_rx_csum':
>> drivers/net/ethernet/intel/iavf/iavf_txrx.c:1081:23: warning: variable 'rx_status' set but not used [-Wunused-but-set-variable]
1081 | u32 rx_error, rx_status;
| ^~~~~~~~~
drivers/net/ethernet/intel/iavf/iavf_txrx.c: In function 'iavf_flex_rx_csum':
>> drivers/net/ethernet/intel/iavf/iavf_txrx.c:1118:25: warning: variable 'rx_status1' set but not used [-Wunused-but-set-variable]
1118 | u16 rx_status0, rx_status1, ptype;
| ^~~~~~~~~~
vim +/rx_status +1081 drivers/net/ethernet/intel/iavf/iavf_txrx.c
1065
1066 /**
1067 * iavf_legacy_rx_csum - Indicate in skb if hw indicated a good cksum
1068 * @vsi: the VSI we care about
1069 * @skb: skb currently being received and modified
1070 * @rx_desc: the receive descriptor
1071 *
1072 * This function only operates on the VIRTCHNL_RXDID_1_32B_BASE legacy 32byte
1073 * descriptor writeback format.
1074 **/
1075 static inline void iavf_legacy_rx_csum(struct iavf_vsi *vsi,
1076 struct sk_buff *skb,
1077 union iavf_rx_desc *rx_desc)
1078 {
1079 struct iavf_rx_csum_decoded csum_bits;
1080 struct iavf_rx_ptype_decoded decoded;
> 1081 u32 rx_error, rx_status;
1082 u64 qword;
1083 u16 ptype;
1084
1085 qword = le64_to_cpu(rx_desc->wb.qword1.status_error_len);
1086 ptype = FIELD_GET(IAVF_RXD_QW1_PTYPE_MASK, qword);
1087 rx_error = FIELD_GET(IAVF_RXD_QW1_ERROR_MASK, qword);
1088 rx_status = FIELD_GET(IAVF_RXD_QW1_STATUS_MASK, qword);
1089 decoded = decode_rx_desc_ptype(ptype);
1090
1091 csum_bits.ipe = FIELD_GET(IAVF_RX_DESC_ERROR_IPE_MASK, rx_error);
1092 csum_bits.eipe = FIELD_GET(IAVF_RX_DESC_ERROR_EIPE_MASK, rx_error);
1093 csum_bits.l4e = FIELD_GET(IAVF_RX_DESC_ERROR_L4E_MASK, rx_error);
1094 csum_bits.pprs = FIELD_GET(IAVF_RX_DESC_ERROR_PPRS_MASK, rx_error);
1095 csum_bits.l3l4p = FIELD_GET(IAVF_RX_DESC_STATUS_L3L4P_MASK, rx_error);
1096 csum_bits.ipv6exadd = FIELD_GET(IAVF_RX_DESC_STATUS_IPV6EXADD_MASK,
1097 rx_error);
1098 csum_bits.nat = 0;
1099 csum_bits.eudpe = 0;
1100
1101 iavf_rx_csum(vsi, skb, &decoded, &csum_bits);
1102 }
1103
1104 /**
1105 * iavf_flex_rx_csum - Indicate in skb if hw indicated a good cksum
1106 * @vsi: the VSI we care about
1107 * @skb: skb currently being received and modified
1108 * @rx_desc: the receive descriptor
1109 *
1110 * This function only operates on the VIRTCHNL_RXDID_2_FLEX_SQ_NIC flexible
1111 * descriptor writeback format.
1112 **/
1113 static inline void iavf_flex_rx_csum(struct iavf_vsi *vsi, struct sk_buff *skb,
1114 union iavf_rx_desc *rx_desc)
1115 {
1116 struct iavf_rx_csum_decoded csum_bits;
1117 struct iavf_rx_ptype_decoded decoded;
> 1118 u16 rx_status0, rx_status1, ptype;
1119
1120 rx_status0 = le16_to_cpu(rx_desc->flex_wb.status_error0);
1121 rx_status1 = le16_to_cpu(rx_desc->flex_wb.status_error1);
1122 ptype = le16_to_cpu(FIELD_GET(IAVF_RX_FLEX_DESC_PTYPE_M,
1123 rx_desc->flex_wb.ptype_flexi_flags0));
1124 decoded = decode_rx_desc_ptype(ptype);
1125
1126 csum_bits.ipe = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_XSUM_IPE_M,
1127 rx_status0);
1128 csum_bits.eipe = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_XSUM_EIPE_M,
1129 rx_status0);
1130 csum_bits.l4e = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_XSUM_L4E_M,
1131 rx_status0);
1132 csum_bits.eudpe = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_XSUM_EUDPE_M,
1133 rx_status0);
1134 csum_bits.l3l4p = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_L3L4P_M,
1135 rx_status0);
1136 csum_bits.ipv6exadd = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS0_IPV6EXADD_M,
1137 rx_status0);
1138 csum_bits.nat = FIELD_GET(IAVF_RX_FLEX_DESC_STATUS1_NAT_M, rx_status0);
1139 csum_bits.pprs = 0;
1140
1141 iavf_rx_csum(vsi, skb, &decoded, &csum_bits);
1142 }
1143
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-03-26 21:02 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-26 11:51 [Intel-wired-lan] [PATCH iwl-next v1 00/12] Add support for Rx timestamping for both ice and iavf drivers Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 01/12] virtchnl: add support for enabling PTP on iAVF Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 02/12] ice: support Rx timestamp on flex descriptor Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 03/12] virtchnl: add enumeration for the rxdid format Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 04/12] iavf: add support for negotiating flexible RXDID format Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 05/12] iavf: negotiate PTP capabilities Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 06/12] iavf: add initial framework for registering PTP clock Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-27 17:43 ` Sai Krishna Gajula
2024-03-27 17:43 ` Sai Krishna Gajula
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 07/12] iavf: add support for indirect access to PHC time Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-27 0:29 ` kernel test robot
2024-03-27 0:29 ` kernel test robot
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 08/12] iavf: periodically cache " Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 09/12] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 21:01 ` kernel test robot [this message]
2024-03-26 21:01 ` kernel test robot
2024-03-29 18:17 ` Simon Horman
2024-03-29 18:17 ` Simon Horman
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 10/12] iavf: Implement checking DD desc field Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 11/12] iavf: handle SIOCSHWTSTAMP and SIOCGHWTSTAMP Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
2024-03-26 11:51 ` [Intel-wired-lan] [PATCH iwl-next v1 12/12] iavf: add support for Rx timestamps to hotpath Mateusz Polchlopek
2024-03-26 11:51 ` Mateusz Polchlopek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202403270404.dmqDS0ic-lkp@intel.com \
--to=lkp@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacob.e.keller@intel.com \
--cc=mateusz.polchlopek@intel.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=wojciech.drewek@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.