[infiniband] Pass a generic MAD to ib_set_port_info()

This commit is contained in:
Michael Brown
2009-07-17 22:40:12 +01:00
parent 0095e18d4c
commit ea6eb7f7ed
4 changed files with 12 additions and 14 deletions

View File

@@ -242,11 +242,11 @@ static void linda_link_state_changed ( struct ib_device *ibdev ) {
* Set port information
*
* @v ibdev Infiniband device
* @v port_info New port information
* @v mad Set port information MAD
*/
static int linda_set_port_info ( struct ib_device *ibdev,
const struct ib_port_info *port_info ) {
static int linda_set_port_info ( struct ib_device *ibdev, union ib_mad *mad ) {
struct linda *linda = ib_get_drvdata ( ibdev );
struct ib_port_info *port_info = &mad->smp.smp_data.port_info;
struct QIB_7220_IBCCtrl ibcctrl;
unsigned int port_state;
unsigned int link_state;