Skip to content

Commit bb90941

Browse files
Ilya Lesokhindavem330
authored andcommitted
net/mlx5e: Move defines out of ipsec code
The defines are not IPSEC specific. Signed-off-by: Ilya Lesokhin <[email protected]> Signed-off-by: Boris Pismenny <[email protected]> Acked-by: Saeed Mahameed <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e8f6979 commit bb90941

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555

5656
struct page_pool;
5757

58+
#define MLX5E_METADATA_ETHER_TYPE (0x8CE4)
59+
#define MLX5E_METADATA_ETHER_LEN 8
60+
5861
#define MLX5_SET_CFG(p, f, v) MLX5_SET(create_flow_group_in, p, f, v)
5962

6063
#define MLX5E_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)

drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
#define MLX5E_IPSEC_SADB_RX_BITS 10
4646
#define MLX5E_IPSEC_ESN_SCOPE_MID 0x80000000L
4747

48-
#define MLX5E_METADATA_ETHER_TYPE (0x8CE4)
49-
#define MLX5E_METADATA_ETHER_LEN 8
50-
5148
struct mlx5e_priv;
5249

5350
struct mlx5e_ipsec_sw_stats {

drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@
4343
#include "fpga/sdk.h"
4444
#include "fpga/core.h"
4545

46-
#define SBU_QP_QUEUE_SIZE 8
47-
#define MLX5_FPGA_IPSEC_CMD_TIMEOUT_MSEC (60 * 1000)
48-
4946
enum mlx5_fpga_ipsec_cmd_status {
5047
MLX5_FPGA_IPSEC_CMD_PENDING,
5148
MLX5_FPGA_IPSEC_CMD_SEND_FAIL,
@@ -258,7 +255,7 @@ static int mlx5_fpga_ipsec_cmd_wait(void *ctx)
258255
{
259256
struct mlx5_fpga_ipsec_cmd_context *context = ctx;
260257
unsigned long timeout =
261-
msecs_to_jiffies(MLX5_FPGA_IPSEC_CMD_TIMEOUT_MSEC);
258+
msecs_to_jiffies(MLX5_FPGA_CMD_TIMEOUT_MSEC);
262259
int res;
263260

264261
res = wait_for_completion_timeout(&context->complete, timeout);

drivers/net/ethernet/mellanox/mlx5/core/fpga/sdk.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
* DOC: Innova SDK
4242
* This header defines the in-kernel API for Innova FPGA client drivers.
4343
*/
44+
#define SBU_QP_QUEUE_SIZE 8
45+
#define MLX5_FPGA_CMD_TIMEOUT_MSEC (60 * 1000)
4446

4547
enum mlx5_fpga_access_type {
4648
MLX5_FPGA_ACCESS_TYPE_I2C = 0x0,

0 commit comments

Comments
 (0)