.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * QLogic qlcnic NIC Driver |
---|
3 | 4 | * Copyright (c) 2009-2013 QLogic Corporation |
---|
4 | | - * |
---|
5 | | - * See LICENSE.qlcnic for copyright and licensing details. |
---|
6 | 5 | */ |
---|
7 | 6 | |
---|
8 | 7 | #ifndef _QLCNIC_H_ |
---|
.. | .. |
---|
418 | 417 | u32 saved_state[16]; |
---|
419 | 418 | u32 cap_sizes[8]; |
---|
420 | 419 | u32 ocm_wnd_reg[16]; |
---|
421 | | - u32 rsvd[0]; |
---|
| 420 | + u32 rsvd[]; |
---|
422 | 421 | }; |
---|
423 | 422 | |
---|
424 | 423 | struct qlcnic_82xx_dump_template_hdr { |
---|
.. | .. |
---|
436 | 435 | u32 cap_sizes[8]; |
---|
437 | 436 | u32 rsvd[7]; |
---|
438 | 437 | u32 capabilities; |
---|
439 | | - u32 rsvd1[0]; |
---|
| 438 | + u32 rsvd1[]; |
---|
440 | 439 | }; |
---|
441 | 440 | |
---|
442 | 441 | #define QLC_PEX_DMA_READ_SIZE (PAGE_SIZE * 16) |
---|
.. | .. |
---|
497 | 496 | u16 board_type; |
---|
498 | 497 | u16 supported_type; |
---|
499 | 498 | |
---|
500 | | - u16 link_speed; |
---|
| 499 | + u32 link_speed; |
---|
501 | 500 | u16 link_duplex; |
---|
502 | 501 | u16 link_autoneg; |
---|
503 | 502 | u16 module_type; |
---|
.. | .. |
---|
536 | 535 | u8 extend_lb_time; |
---|
537 | 536 | u8 phys_port_id[ETH_ALEN]; |
---|
538 | 537 | u8 lb_mode; |
---|
539 | | - u8 vxlan_port_count; |
---|
540 | | - u16 vxlan_port; |
---|
541 | 538 | struct device *hwmon_dev; |
---|
542 | 539 | u32 post_mode; |
---|
543 | 540 | bool run_post; |
---|
.. | .. |
---|
740 | 737 | The following is packed: |
---|
741 | 738 | - N hostrq_rds_rings |
---|
742 | 739 | - N hostrq_sds_rings */ |
---|
743 | | - char data[0]; |
---|
| 740 | + char data[]; |
---|
744 | 741 | } __packed; |
---|
745 | 742 | |
---|
746 | 743 | struct qlcnic_cardrsp_rds_ring{ |
---|
.. | .. |
---|
769 | 766 | The following is packed: |
---|
770 | 767 | - N cardrsp_rds_rings |
---|
771 | 768 | - N cardrs_sds_rings */ |
---|
772 | | - char data[0]; |
---|
| 769 | + char data[]; |
---|
773 | 770 | } __packed; |
---|
774 | 771 | |
---|
775 | 772 | #define SIZEOF_HOSTRQ_RX(HOSTRQ_RX, rds_rings, sds_rings) \ |
---|
.. | .. |
---|
1025 | 1022 | #define QLCNIC_APP_CHANGED_FLAGS 0x20000 |
---|
1026 | 1023 | #define QLCNIC_HAS_PHYS_PORT_ID 0x40000 |
---|
1027 | 1024 | #define QLCNIC_TSS_RSS 0x80000 |
---|
1028 | | - |
---|
1029 | | -#define QLCNIC_ADD_VXLAN_PORT 0x100000 |
---|
1030 | | -#define QLCNIC_DEL_VXLAN_PORT 0x200000 |
---|
1031 | 1025 | |
---|
1032 | 1026 | #define QLCNIC_VLAN_FILTERING 0x800000 |
---|
1033 | 1027 | |
---|
.. | .. |
---|
1700 | 1694 | int qlcnic_set_default_offload_settings(struct qlcnic_adapter *); |
---|
1701 | 1695 | int qlcnic_reset_npar_config(struct qlcnic_adapter *); |
---|
1702 | 1696 | int qlcnic_set_eswitch_port_config(struct qlcnic_adapter *); |
---|
| 1697 | +int qlcnic_set_vxlan_port(struct qlcnic_adapter *adapter, u16 port); |
---|
| 1698 | +int qlcnic_set_vxlan_parsing(struct qlcnic_adapter *adapter, u16 port); |
---|
1703 | 1699 | int qlcnic_83xx_configure_opmode(struct qlcnic_adapter *adapter); |
---|
1704 | 1700 | int qlcnic_read_mac_addr(struct qlcnic_adapter *); |
---|
1705 | 1701 | int qlcnic_setup_netdev(struct qlcnic_adapter *, struct net_device *, int); |
---|
.. | .. |
---|
1878 | 1874 | loff_t offset, size_t size) |
---|
1879 | 1875 | { |
---|
1880 | 1876 | adapter->ahw->hw_ops->write_crb(adapter, buf, offset, size); |
---|
1881 | | -} |
---|
1882 | | - |
---|
1883 | | -static inline int qlcnic_hw_write_wx_2M(struct qlcnic_adapter *adapter, |
---|
1884 | | - ulong off, u32 data) |
---|
1885 | | -{ |
---|
1886 | | - return adapter->ahw->hw_ops->write_reg(adapter, off, data); |
---|
1887 | 1877 | } |
---|
1888 | 1878 | |
---|
1889 | 1879 | static inline int qlcnic_get_mac_address(struct qlcnic_adapter *adapter, |
---|