NTB driver bug fixes to address issues in list traversal, skb leak in
ntb_netdev, a typo, and a leak of msix entries in the error path. Clean ups of the event handling logic, as well as a overall style cleanup. Finally, the driver was converted to use the new pci_enable_msix_range logic (and the refactoring to go along with it). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAABAgAGBQJTQxbAAAoJEG5mS6x6i9Ijq7oP/0pYUCGKYv3ElQuyatPnDI8q rSi93Q7WVYpv92y+uhal/TldVR5LvKKnPBf700TwUpj752X1XhlcFCw2TE9kHH1c VRicAZypLl4+5ob5QhFD7mRl+gEbq3JHLwSPffM26V5dm3mMqm24PRQPm9RN2uzO MRL/WEgShGM1pJQhIx+Ti+35/PxV67dw/rysvoUtPIuB8DfoIU7UBYEJ9BrzfyCP AXSjJmrR92ES/HX4w1kcXl+FA6sF/UR/YmnAW9uO6YDhxiIs1RNpiqJEJUettOHI 7SxF4tFv8Pi5Heuf4ASflF1bPOFOLUt698W3+JMWaD0bLgF5IDI9hTvtbfOhy7Ag zqsRCipZ3dVJ8EE012IA978rjqbr8qrHfQK2jnD0JALWf/t8RHBzo3IjfRu+c6W+ aRlkqu2BxZO0V3tFLoJ7uQrjp23hrERjRJi8s5hjOqwMwgB3SlVsaMVJDkeuR/46 diQTkxjylhlQgdJb6xlSiM948wfcMt5pIFxWQppHFk8ouCOX1+q9u4cEipU+nvT+ dcnc5mqERqMMjsHke3uzsHtG8OlPbbtHjzCKXT1/7NPhUn2x84AsOEkiX+qas5nK sabgOWZtawz1Nl3x+gKR6OBGtXDdLlj7JTsqphPa3mr3RBqx8v8VVYYtqHVCiy8N mtc/701fHOKdrBtk54Wb =vDei -----END PGP SIGNATURE----- Merge tag 'ntb-3.15' of git://github.com/jonmason/ntb Pull PCIe non-transparent bridge fixes and features from Jon Mason: "NTB driver bug fixes to address issues in list traversal, skb leak in ntb_netdev, a typo, and a leak of msix entries in the error path. Clean ups of the event handling logic, as well as a overall style cleanup. Finally, the driver was converted to use the new pci_enable_msix_range logic (and the refactoring to go along with it)" * tag 'ntb-3.15' of git://github.com/jonmason/ntb: ntb: Use pci_enable_msix_range() instead of pci_enable_msix() ntb: Split ntb_setup_msix() into separate BWD/SNB routines ntb: Use pci_msix_vec_count() to obtain number of MSI-Xs NTB: Code Style Clean-up NTB: client event cleanup ntb: Fix leakage of ntb_device::msix_entries[] array NTB: Fix typo in setting one translation register ntb_netdev: Fix skb free issue in open ntb_netdev: Fix list_for_each_entry exit issue
This commit is contained in:
commit
07f5fef981
5 changed files with 150 additions and 116 deletions
|
|
@ -50,8 +50,13 @@ struct ntb_transport_qp;
|
|||
|
||||
struct ntb_client {
|
||||
struct device_driver driver;
|
||||
int (*probe) (struct pci_dev *pdev);
|
||||
void (*remove) (struct pci_dev *pdev);
|
||||
int (*probe)(struct pci_dev *pdev);
|
||||
void (*remove)(struct pci_dev *pdev);
|
||||
};
|
||||
|
||||
enum {
|
||||
NTB_LINK_DOWN = 0,
|
||||
NTB_LINK_UP,
|
||||
};
|
||||
|
||||
int ntb_register_client(struct ntb_client *drvr);
|
||||
|
|
@ -60,11 +65,11 @@ int ntb_register_client_dev(char *device_name);
|
|||
void ntb_unregister_client_dev(char *device_name);
|
||||
|
||||
struct ntb_queue_handlers {
|
||||
void (*rx_handler) (struct ntb_transport_qp *qp, void *qp_data,
|
||||
void *data, int len);
|
||||
void (*tx_handler) (struct ntb_transport_qp *qp, void *qp_data,
|
||||
void *data, int len);
|
||||
void (*event_handler) (void *data, int status);
|
||||
void (*rx_handler)(struct ntb_transport_qp *qp, void *qp_data,
|
||||
void *data, int len);
|
||||
void (*tx_handler)(struct ntb_transport_qp *qp, void *qp_data,
|
||||
void *data, int len);
|
||||
void (*event_handler)(void *data, int status);
|
||||
};
|
||||
|
||||
unsigned char ntb_transport_qp_num(struct ntb_transport_qp *qp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue