Skip to content

Commit f0adc6e

Browse files
jbrandebJeff Kirsher
authored andcommitted
i40evf/virtchnl: whitespace cleanups
This patch fixes up a bunch of whitespace issues introduced by the previous automated change of name from i40e to virtchnl. Signed-off-by: Jesse Brandeburg <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 764430c commit f0adc6e

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,7 @@ static int i40e_vc_get_version_msg(struct i40e_vf *vf, u8 *msg)
14851485
info.minor = VIRTCHNL_VERSION_MINOR_NO_VF_CAPS;
14861486
return i40e_vc_send_msg_to_vf(vf, VIRTCHNL_OP_VERSION,
14871487
I40E_SUCCESS, (u8 *)&info,
1488-
sizeof(struct
1489-
virtchnl_version_info));
1488+
sizeof(struct virtchnl_version_info));
14901489
}
14911490

14921491
/**
@@ -1544,11 +1543,9 @@ static int i40e_vc_get_vf_resources_msg(struct i40e_vf *vf, u8 *msg)
15441543
} else {
15451544
if ((pf->flags & I40E_FLAG_RSS_AQ_CAPABLE) &&
15461545
(vf->driver_caps & VIRTCHNL_VF_OFFLOAD_RSS_AQ))
1547-
vfres->vf_offload_flags |=
1548-
VIRTCHNL_VF_OFFLOAD_RSS_AQ;
1546+
vfres->vf_offload_flags |= VIRTCHNL_VF_OFFLOAD_RSS_AQ;
15491547
else
1550-
vfres->vf_offload_flags |=
1551-
VIRTCHNL_VF_OFFLOAD_RSS_REG;
1548+
vfres->vf_offload_flags |= VIRTCHNL_VF_OFFLOAD_RSS_REG;
15521549
}
15531550

15541551
if (pf->flags & I40E_FLAG_MULTIPLE_TCP_UDP_RSS_PCTYPE) {
@@ -2530,8 +2527,7 @@ static int i40e_vc_set_rss_hena(struct i40e_vf *vf, u8 *msg, u16 msglen)
25302527

25312528
/* send the response to the VF */
25322529
err:
2533-
return i40e_vc_send_resp_to_vf(vf, VIRTCHNL_OP_SET_RSS_HENA,
2534-
aq_ret);
2530+
return i40e_vc_send_resp_to_vf(vf, VIRTCHNL_OP_SET_RSS_HENA, aq_ret);
25352531
}
25362532

25372533
/**

drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,7 @@ void i40evf_virtchnl_completion(struct i40evf_adapter *adapter,
10181018
~(BIT(VIRTCHNL_OP_CONFIG_IWARP_IRQ_MAP));
10191019
break;
10201020
case VIRTCHNL_OP_GET_RSS_HENA_CAPS: {
1021-
struct virtchnl_rss_hena *vrh =
1022-
(struct virtchnl_rss_hena *)msg;
1021+
struct virtchnl_rss_hena *vrh = (struct virtchnl_rss_hena *)msg;
10231022
if (msglen == sizeof(*vrh))
10241023
adapter->hena = vrh->hena;
10251024
else

include/linux/avf/virtchnl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ struct virtchnl_vsi_resource {
175175
#define VIRTCHNL_VF_OFFLOAD_IWARP 0x00000002
176176
#define VIRTCHNL_VF_OFFLOAD_FCOE 0x00000004
177177
#define VIRTCHNL_VF_OFFLOAD_RSS_AQ 0x00000008
178-
#define VIRTCHNL_VF_OFFLOAD_RSS_REG 0x00000010
179-
#define VIRTCHNL_VF_OFFLOAD_WB_ON_ITR 0x00000020
178+
#define VIRTCHNL_VF_OFFLOAD_RSS_REG 0x00000010
179+
#define VIRTCHNL_VF_OFFLOAD_WB_ON_ITR 0x00000020
180180
#define VIRTCHNL_VF_OFFLOAD_VLAN 0x00010000
181-
#define VIRTCHNL_VF_OFFLOAD_RX_POLLING 0x00020000
181+
#define VIRTCHNL_VF_OFFLOAD_RX_POLLING 0x00020000
182182
#define VIRTCHNL_VF_OFFLOAD_RSS_PCTYPE_V2 0x00040000
183183
#define VIRTCHNL_VF_OFFLOAD_RSS_PF 0X00080000
184184
#define VIRTCHNL_VF_OFFLOAD_ENCAP 0X00100000

0 commit comments

Comments
 (0)