diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/cxgb4/cxgb4.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/cxgb4/cxgb4.h')
-rw-r--r-- | drivers/net/cxgb4/cxgb4.h | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/drivers/net/cxgb4/cxgb4.h b/drivers/net/cxgb4/cxgb4.h index 6e562c0dad7d..bc9982a4c1f4 100644 --- a/drivers/net/cxgb4/cxgb4.h +++ b/drivers/net/cxgb4/cxgb4.h | |||
@@ -281,7 +281,6 @@ struct sge_rspq; | |||
281 | 281 | ||
282 | struct port_info { | 282 | struct port_info { |
283 | struct adapter *adapter; | 283 | struct adapter *adapter; |
284 | struct vlan_group *vlan_grp; | ||
285 | u16 viid; | 284 | u16 viid; |
286 | s16 xact_addr_filt; /* index of exact MAC address filter */ | 285 | s16 xact_addr_filt; /* index of exact MAC address filter */ |
287 | u16 rss_size; /* size of VI's RSS table slice */ | 286 | u16 rss_size; /* size of VI's RSS table slice */ |
@@ -291,7 +290,6 @@ struct port_info { | |||
291 | u8 port_id; | 290 | u8 port_id; |
292 | u8 tx_chan; | 291 | u8 tx_chan; |
293 | u8 lport; /* associated offload logical port */ | 292 | u8 lport; /* associated offload logical port */ |
294 | u8 rx_offload; /* CSO, etc */ | ||
295 | u8 nqsets; /* # of qsets */ | 293 | u8 nqsets; /* # of qsets */ |
296 | u8 first_qset; /* index of first qset */ | 294 | u8 first_qset; /* index of first qset */ |
297 | u8 rss_mode; | 295 | u8 rss_mode; |
@@ -299,11 +297,6 @@ struct port_info { | |||
299 | u16 *rss; | 297 | u16 *rss; |
300 | }; | 298 | }; |
301 | 299 | ||
302 | /* port_info.rx_offload flags */ | ||
303 | enum { | ||
304 | RX_CSO = 1 << 0, | ||
305 | }; | ||
306 | |||
307 | struct dentry; | 300 | struct dentry; |
308 | struct work_struct; | 301 | struct work_struct; |
309 | 302 | ||
@@ -463,6 +456,8 @@ struct sge { | |||
463 | u8 counter_val[SGE_NCOUNTERS]; | 456 | u8 counter_val[SGE_NCOUNTERS]; |
464 | unsigned int starve_thres; | 457 | unsigned int starve_thres; |
465 | u8 idma_state[2]; | 458 | u8 idma_state[2]; |
459 | unsigned int egr_start; | ||
460 | unsigned int ingr_start; | ||
466 | void *egr_map[MAX_EGRQ]; /* qid->queue egress queue map */ | 461 | void *egr_map[MAX_EGRQ]; /* qid->queue egress queue map */ |
467 | struct sge_rspq *ingr_map[MAX_INGQ]; /* qid->queue ingress queue map */ | 462 | struct sge_rspq *ingr_map[MAX_INGQ]; /* qid->queue ingress queue map */ |
468 | DECLARE_BITMAP(starving_fl, MAX_EGRQ); | 463 | DECLARE_BITMAP(starving_fl, MAX_EGRQ); |
@@ -481,11 +476,9 @@ struct adapter { | |||
481 | void __iomem *regs; | 476 | void __iomem *regs; |
482 | struct pci_dev *pdev; | 477 | struct pci_dev *pdev; |
483 | struct device *pdev_dev; | 478 | struct device *pdev_dev; |
484 | unsigned long registered_device_map; | ||
485 | unsigned int fn; | 479 | unsigned int fn; |
486 | unsigned int flags; | 480 | unsigned int flags; |
487 | 481 | ||
488 | const char *name; | ||
489 | int msg_enable; | 482 | int msg_enable; |
490 | 483 | ||
491 | struct adapter_params params; | 484 | struct adapter_params params; |
@@ -496,7 +489,7 @@ struct adapter { | |||
496 | 489 | ||
497 | struct { | 490 | struct { |
498 | unsigned short vec; | 491 | unsigned short vec; |
499 | char desc[14]; | 492 | char desc[IFNAMSIZ + 10]; |
500 | } msix_info[MAX_INGQ + 1]; | 493 | } msix_info[MAX_INGQ + 1]; |
501 | 494 | ||
502 | struct sge sge; | 495 | struct sge sge; |
@@ -590,7 +583,6 @@ void t4_os_portmod_changed(const struct adapter *adap, int port_id); | |||
590 | void t4_os_link_changed(struct adapter *adap, int port_id, int link_stat); | 583 | void t4_os_link_changed(struct adapter *adap, int port_id, int link_stat); |
591 | 584 | ||
592 | void *t4_alloc_mem(size_t size); | 585 | void *t4_alloc_mem(size_t size); |
593 | void t4_free_mem(void *addr); | ||
594 | 586 | ||
595 | void t4_free_sge_resources(struct adapter *adap); | 587 | void t4_free_sge_resources(struct adapter *adap); |
596 | irq_handler_t t4_intr_handler(struct adapter *adap); | 588 | irq_handler_t t4_intr_handler(struct adapter *adap); |
@@ -649,7 +641,6 @@ static inline int t4_wr_mbox_ns(struct adapter *adap, int mbox, const void *cmd, | |||
649 | 641 | ||
650 | void t4_intr_enable(struct adapter *adapter); | 642 | void t4_intr_enable(struct adapter *adapter); |
651 | void t4_intr_disable(struct adapter *adapter); | 643 | void t4_intr_disable(struct adapter *adapter); |
652 | void t4_intr_clear(struct adapter *adapter); | ||
653 | int t4_slow_intr_handler(struct adapter *adapter); | 644 | int t4_slow_intr_handler(struct adapter *adapter); |
654 | 645 | ||
655 | int t4_wait_dev_ready(struct adapter *adap); | 646 | int t4_wait_dev_ready(struct adapter *adap); |
@@ -662,24 +653,16 @@ int t4_check_fw_version(struct adapter *adapter); | |||
662 | int t4_prep_adapter(struct adapter *adapter); | 653 | int t4_prep_adapter(struct adapter *adapter); |
663 | int t4_port_init(struct adapter *adap, int mbox, int pf, int vf); | 654 | int t4_port_init(struct adapter *adap, int mbox, int pf, int vf); |
664 | void t4_fatal_err(struct adapter *adapter); | 655 | void t4_fatal_err(struct adapter *adapter); |
665 | int t4_set_trace_filter(struct adapter *adapter, const struct trace_params *tp, | ||
666 | int filter_index, int enable); | ||
667 | void t4_get_trace_filter(struct adapter *adapter, struct trace_params *tp, | ||
668 | int filter_index, int *enabled); | ||
669 | int t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid, | 656 | int t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid, |
670 | int start, int n, const u16 *rspq, unsigned int nrspq); | 657 | int start, int n, const u16 *rspq, unsigned int nrspq); |
671 | int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode, | 658 | int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode, |
672 | unsigned int flags); | 659 | unsigned int flags); |
673 | int t4_read_rss(struct adapter *adapter, u16 *entries); | ||
674 | int t4_mc_read(struct adapter *adap, u32 addr, __be32 *data, u64 *parity); | 660 | int t4_mc_read(struct adapter *adap, u32 addr, __be32 *data, u64 *parity); |
675 | int t4_edc_read(struct adapter *adap, int idx, u32 addr, __be32 *data, | 661 | int t4_edc_read(struct adapter *adap, int idx, u32 addr, __be32 *data, |
676 | u64 *parity); | 662 | u64 *parity); |
677 | 663 | ||
678 | void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p); | 664 | void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p); |
679 | void t4_get_lb_stats(struct adapter *adap, int idx, struct lb_port_stats *p); | ||
680 | |||
681 | void t4_read_mtu_tbl(struct adapter *adap, u16 *mtus, u8 *mtu_log); | 665 | void t4_read_mtu_tbl(struct adapter *adap, u16 *mtus, u8 *mtu_log); |
682 | void t4_tp_get_err_stats(struct adapter *adap, struct tp_err_stats *st); | ||
683 | void t4_tp_get_tcp_stats(struct adapter *adap, struct tp_tcp_stats *v4, | 666 | void t4_tp_get_tcp_stats(struct adapter *adap, struct tp_tcp_stats *v4, |
684 | struct tp_tcp_stats *v6); | 667 | struct tp_tcp_stats *v6); |
685 | void t4_load_mtus(struct adapter *adap, const unsigned short *mtus, | 668 | void t4_load_mtus(struct adapter *adap, const unsigned short *mtus, |
@@ -709,8 +692,6 @@ int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf, | |||
709 | int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, | 692 | int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, |
710 | unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac, | 693 | unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac, |
711 | unsigned int *rss_size); | 694 | unsigned int *rss_size); |
712 | int t4_free_vi(struct adapter *adap, unsigned int mbox, unsigned int pf, | ||
713 | unsigned int vf, unsigned int viid); | ||
714 | int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid, | 695 | int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid, |
715 | int mtu, int promisc, int all_multi, int bcast, int vlanex, | 696 | int mtu, int promisc, int all_multi, int bcast, int vlanex, |
716 | bool sleep_ok); | 697 | bool sleep_ok); |
@@ -729,9 +710,6 @@ int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, | |||
729 | unsigned int mmd, unsigned int reg, u16 *valp); | 710 | unsigned int mmd, unsigned int reg, u16 *valp); |
730 | int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, | 711 | int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, |
731 | unsigned int mmd, unsigned int reg, u16 val); | 712 | unsigned int mmd, unsigned int reg, u16 val); |
732 | int t4_iq_start_stop(struct adapter *adap, unsigned int mbox, bool start, | ||
733 | unsigned int pf, unsigned int vf, unsigned int iqid, | ||
734 | unsigned int fl0id, unsigned int fl1id); | ||
735 | int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, | 713 | int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, |
736 | unsigned int vf, unsigned int iqtype, unsigned int iqid, | 714 | unsigned int vf, unsigned int iqtype, unsigned int iqid, |
737 | unsigned int fl0id, unsigned int fl1id); | 715 | unsigned int fl0id, unsigned int fl1id); |